|
From: scott_m <js...@ca...> - 2013-03-01 23:37:43
|
This topic has been touched on in other posts but I can't find any
explanation about producing multiple conformers with a particular diversity.
For example:
obabel input -O output --conformer --nconf 50 --score rmsd
- I seem to only get one conformer written to the output file. How can you
produce multiple conformers?
- Also, it would be great to see some python code for this. I put together
the code below based on the c code but I'm a bit stuck with accessing the
conformers after the GetConformer command. How do you then write the
conformer to an output file for instance?
import openbabel as ob
input_file='test.sdf'
mol = ob.OBMol()
cv = ob.OBConversion()
cv.SetInAndOutFormats('sdf','sdf')
cv.ReadFile(mol, input_file)
cs=ob.OBConformerSearch()
cs.Setup(mol,30,5,5,25)
cs.GetConformers(mol)
--
View this message in context: http://forums.openbabel.org/Generating-a-diverse-set-of-conformers-tp4656011.html
Sent from the General discussion mailing list archive at Nabble.com.
|