Skip to content

Instantly share code, notes, and snippets.

@tahwaru
tahwaru / 01_read.py
Created February 27, 2021 11:54 — forked from cjue25/01_read.py
Using Python for Research_Case Study 1 &2
def read_seq(inputfile):
"""reads and returns the imput sequence with special characters removed."""
with open(inputfile, 'r') as f:
seq=f.read()
seq = seq.replace("\n","")
seq= seq.replace("\r","")
return seq
.........\Anaconda3\python.exe "..........AppData\Local\JetBrains\PyCharm Community Edition 2020.3\plugins\python-ce\helpers\pydev\pydevconsole.py" --mode=client --port=55898
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['
Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help.
PyDev console: using IPython 7.19.0
C:\...\Anaconda3\python.exe ".........JetBrains\PyCharm Community Edition 2020.3\plugins\python-ce\helpers\pydev\pydevconsole.py" --mode=client --port=54909
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['...........SystemDesign', ......./SystemDesign'])
Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help.
PyDev console: using IPython 7.19.0
@tahwaru
tahwaru / MztestImag
Last active February 18, 2021 19:20
...........\Anaconda3\python.exe ".........\Local\JetBrains\PyCharm Community Edition 2020.3\plugins\python-ce\helpers\pydev\pydevconsole.py" --mode=client --port=50459
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend([''])
Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help.
PyDev console: using IPython 7.19.0
C:\\AppData\Local\JetBrains\PyCharm Community Edition 2020.3\plugins\python-ce\helpers\pydev\pydevconsole.py" --mode=client --port=51450
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['............PycharmProjects/cvnn'])
Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help.
PyDev console: using IPython 7.19.0
@tahwaru
tahwaru / Mytest
Last active February 18, 2021 19:21
C\AppData\Local\JetBrains\PyCharm Community Edition 2020.3\plugins\python-ce\helpers\pydev\pydevconsole.py" --mode=client --port=59828
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['a/PycharmProjects/cvnn'])
Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help.
PyDev console: using IPython 7.19.0
@tahwaru
tahwaru / Run1
Last active February 18, 2021 19:22
sdc
Anaconda3\python.exeta\Local\JetBrains\PyCharm Community Edition 2020.3\plugins\python-ce\helpers\pydev\pydevconsole.py" --mode=client --port=49739
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend([ystemDesign'])
Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help.
PyDev console: using IPython 7.19.0