[Open Babel] Using OBChargeModel to calculate MMFF94 partial charges.

2012-01-11 Thread Toby Wright
Hi, I'm trying to assign MMFF94 partial charges to a molecule programatically with the Open Babel API in C++. I'm using version 2.3.1 of openbabel and running on Ubuntu. My code snippet (based on the example from the OBChargeModel documentation) is as follows: OBChargeModel* mmffCharges

[Open Babel] Java implementation of pybel's calcfp() to convert smiles into fingerprint

2012-01-11 Thread alvin
Hi everybody. I'm trying to use Java implementation of open babel to solve a problem. The problem is pretty simple. I have to convert some molecules in smiles format in fingerprints in order to calculate after the tanimoto score. I took a look at the documentation and I found that in pybel exists a

[Open Babel] Substructure searching (large datasets) .sdf format doubt

2012-01-11 Thread David García Aristegui
"First of all, you need to create a fastsearch index (see above). The index is created with the following command: babel mymols.sdf -ofs" http://openbabel.org/docs/dev/Fingerprints/fingerprints.html Could you please tell me the differences between the use of a 2D or a 3D sdf file regarding the .

Re: [Open Babel] Using OBChargeModel to calculate MMFF94 partial charges.

2012-01-11 Thread Geoff Hutchison
> My code snippet (based on the example from the OBChargeModel > documentation) is as follows: Have you created an OBConversion object? We changed the way plugins are loaded in OB 2.3.x, and it currently requires that an OBConversion object is created to find plugins. This will be fixed in 2.4,

Re: [Open Babel] Substructure searching (large datasets) .sdf format doubt

2012-01-11 Thread Noel O'Boyle
FP2 is a Daylight-type fingerprint. It is based only on connectivity, and does not incorporate any stereochemical information, so 2D or 3D structures will give the same results. - Noel On 11 January 2012 14:23, David García Aristegui wrote: > "First of all, you need to create a fastsearch index

Re: [Open Babel] Java implementation of pybel's calcfp() to convert smiles into fingerprint

2012-01-11 Thread Noel O'Boyle
>From Python, it goes something like this... >>> import openbabel as ob >>> conv = ob.OBConversion() >>> mol = ob.OBMol() >>> conv.SetInFormat("smi") True >>> conv.ReadString(mol, "CC(=O)Cl") True >>> fingerprinter = ob.OBFingerprint.FindFingerprint("FP2") >>> print fingerprinter > >>> fp = ob.ve

Re: [Open Babel] Substructure searching (large datasets) .sdf format doubt

2012-01-11 Thread Chris Morley
On 11/01/2012 14:23, David García Aristegui wrote: > "First of all, you need to create a fastsearch index (see above). The > index is created with the following command: > > babel mymols.sdf -ofs" > > http://openbabel.org/docs/dev/Fingerprints/fingerprints.html > > Could you please tell me the diff

Re: [Open Babel] Substructure searching (large datasets) .sdf format doubt

2012-01-11 Thread David García Aristegui
Thank you very much, Noel and Chris. Best regards. > On 11/01/2012 14:23, David García Aristegui wrote: >> "First of all, you need to create a fastsearch index (see above). The >> index is created with the following command: >> >> babel mymols.sdf -ofs" >> >> http://openbabel.org/docs/dev/Fingerpr

Re: [Open Babel] Java implementation of pybel's calcfp() to convert smiles into fingerprint

2012-01-11 Thread alvin
Noel O'Boyle wrote > >>From Python, it goes something like this... > import openbabel as ob conv = ob.OBConversion() mol = ob.OBMol() conv.SetInFormat("smi") > True conv.ReadString(mol, "CC(=O)Cl") > True fingerprinter = ob.OBFingerprint.FindFingerprint("FP2")