Closed bjonnh closed 9 years ago
This adds support for highlighting using pybel operations:
import pybel import imolecule mol = pybel.readstring("smi","OCN(CC)CCS") pybel._operations['highlight'].Do(mol.OBMol, "[#6][#7] #FF0000") pybel._operations['highlight'].Do(mol.OBMol, "[#1][#8] #0000FF") pybel._operations['highlight'].Do(mol.OBMol, "[#16][#6] #00FF00") imolecule.draw(mol, shader="phong",format="pybel", display_html=True)
Great, I'll merge this.
This adds support for highlighting using pybel operations: