This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### split molecule file to separate components and save to multiple files. | |
import pybel | |
from openbabel import * | |
mol = pybel.readfile('mol2', 'ligand.mol2').next() | |
separated = mol.OBMol.Separate() | |
def writeOut( theConformer, outputPath ): | |
myConversion = OBConversion() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@<TRIPOS>MOLECULE | |
pary/165D/ligand.pdb | |
57 54 0 0 0 | |
SMALL | |
GASTEIGER | |
@<TRIPOS>ATOM | |
1 RH -2.4540 0.1530 21.4230 Rh 19 RHD19 0.0000 | |
2 N1 -0.6230 -0.6450 20.7690 N.3 19 RHD19 0.0000 | |
3 N2 -3.4790 -1.1210 20.1210 N.3 19 RHD19 0.0000 |
NewerOlder