Kernel: Python 2 (Ubuntu Linux)
PLIP, locally installed
Python 2, Ubuntu Linux Kernel
Notes about setting up PLIP in a CoCalc project
create terminal file
mkdir plip
andcd plip
open ~/.bashrc
and then at the bottom:alias plip='~/pliptool/plip/plipcmd'
andexport PYTHONPATH=~/pliptool:${PYTHONPATH}
run "ctrl-d" and hit return in the terminal to restart your session with the new bashrc configuration
mkdir ~/plip/1vsn
and thencd ~/plip/1vsn
(instead of that tmp dir!)but errors ???
In [1]:
In [2]:
In [0]:
In [5]:
total 198
-rw-r--r-- 1 user user 435456 Apr 17 13:10 1EVE.pdb
drwxr-xr-x 2 user user 2 Apr 17 12:51 1vsn
-rw-r--r-- 1 user user 0 Apr 17 12:57 plip-cocalc.md
-rw-r--r-- 1 user user 11629 Apr 17 13:10 test-plip.ipynb
In [3]:
TypeErrorTraceback (most recent call last)
<ipython-input-3-b5d766d7fab9> in <module>()
----> 1 from plip.modules.preparation import PDBComplex
2
3 my_mol = PDBComplex()
4 my_mol.load_pdb(os.path.expanduser('~/plip/1EVE.pdb')) # Load the PDB file into PLIP class
5 print my_mol # Shows name of structure and ligand binding sites
/home/user/pliptool/plip/modules/preparation.py in <module>()
11
12 # Own modules
---> 13 from .detection import *
14 from .supplemental import *
15 from . import config
/home/user/pliptool/plip/modules/detection.py in <module>()
10
11 # Own modules
---> 12 from .supplemental import *
13 from . import config
14
/home/user/pliptool/plip/modules/supplemental.py in <module>()
25 # External libraries
26 import pybel
---> 27 from pybel import *
28 from openbabel import *
29 import numpy as np
TypeError: Item in ``from list'' not a string
the cmd startup content
In [3]:
TypeErrorTraceback (most recent call last)
<ipython-input-3-6928ff32bc35> in <module>()
4
5 # Own modules
----> 6 from plip.modules.preparation import *
7 from plip.modules.plipremote import VisualizerData
8 from plip.modules.report import StructureReport,__version__
/home/user/pliptool/plip/modules/preparation.py in <module>()
11
12 # Own modules
---> 13 from .detection import *
14 from .supplemental import *
15 from . import config
/home/user/pliptool/plip/modules/detection.py in <module>()
10
11 # Own modules
---> 12 from .supplemental import *
13 from . import config
14
/home/user/pliptool/plip/modules/supplemental.py in <module>()
25 # External libraries
26 import pybel
---> 27 from pybel import *
28 from openbabel import *
29 import numpy as np
TypeError: Item in ``from list'' not a string
In [5]: