In [1]:
from __future__ import print_function
import oddt
In [2]:
print(oddt.__version__)
In [3]:
%%bash
wget -q -N www.pdbbind.org.cn/v2007/10gs/10gs_ligand.mol2
In [4]:
print('Default size: ', oddt.toolkit.image_size)
print('Default backend: ', oddt.toolkit.image_backend)
In [5]:
oddt.toolkit = oddt.toolkits.ob
mol = next(oddt.toolkit.readfile('mol2', '10gs_ligand.mol2'))
mol.removeh()
In [6]:
mol
Out[6]:
In [7]:
oddt.toolkit.image_backend = 'svg'
mol
Out[7]:
In [8]:
oddt.toolkit = oddt.toolkits.rdk
mol = next(oddt.toolkit.readfile('mol2', '10gs_ligand.mol2'))
mol.removeh()
In [9]:
oddt.toolkit.image_backend = 'png'
mol
Out[9]:
In [10]:
oddt.toolkit.image_backend = 'svg'
mol
Out[10]:
In [ ]:
In [11]:
oddt.toolkit.image_backend = 'png'
oddt.toolkit.image_size = 100
In [12]:
mol
Out[12]:
In [13]:
oddt.toolkit.image_size = (600, 400)
In [14]:
mol
Out[14]:
In [ ]: