import prody
prot = prody.parsePDB('3UB5')
@> PDB file is found in the local folder (/Users/dkoes/.../3ub5.pdb.gz). @> 4055 atoms and 1 coordinate set(s) were parsed in 0.04s.
The default visualization in ProDy uses matplotlib.
%matplotlib inline
prody.showProtein(prot)
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment. warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
<mpl_toolkits.mplot3d.axes3d.Axes3D at 0x10c93dbd0>
With the latest version of ProDy, py3Dmol
will be used if it has been imported.
prody.checkUpdates()
@> You are using the latest ProDy release (v1.8.2).
import py3Dmol
prody.showProtein(prot)
A number of keyword arguments are supported.
The background color is configurable.
prody.showProtein(prot,backgroundColor="black")