That's great, many thanks for the help. One other thing, I mentioned pybel
because I haven't got the OBMol conversion from input smiles string to
output file with 3D coordinates. Would you mind giving a quick example of
this (or directing me to online documentation, I couldn't find much here)?

What I have been trying:

mol = openbabel.OBMol()
conversion = openbabel.OBConversion()
conversion.SetInAndOutFormats('smi', 'com')
conversion.ReadString(mol, 'cc')
mol.AddHydrogens()

#Next step is what I'm not sure of, how do I get the coordinates so that I
can optimize and write to file??   

cv.GetCoordinates()
cv.WriteFile(mol, 'test.com')

# But this just gives the coordinates as 0

With pybel I found the make3d() and localopt() functions very handy for this
but can't get a similar setup going with openbabel. 

Apologies if this is a bit of a new thread.

Cheers,

Scott

--
View this message in context: 
http://forums.openbabel.org/Weighted-rotor-search-tp4655264p4655272.html
Sent from the General discussion mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to