Re: [OpenBabel-Devel] [Open Babel] print UFF parameters

2018-05-21 Thread Geoffrey Hutchison
Hi Dai, Please don't e-mail me directly. It gets lost in my e-mail box and prevents others from answering your question (or seeing my reply). As I believe I note in the source code, these discussions are from the Towhee webpages: http://towhee.sourceforge.net/forcefields/uff.html I don't belie

Re: [OpenBabel-Devel] Getting SMILES Atom Order data

2018-05-21 Thread Craig James
The OpenBabel toolkit has the ability to generate canonical SMILES of fragments. It's a key part of the SMILES generator. And it keeps the context of each atom and writes partial aromaticity. For example, if you have Oc1c1O, and you specify atoms 1,2, 7, and 8, it will write "OccO". OBMol *pmo

Re: [OpenBabel-Devel] Getting SMILES Atom Order data

2018-05-21 Thread Noel O'Boyle
Two points to note: 1. If you break a bond, you should increase the implicit H count of the attached atoms by the bond order. Otherwise you end up with radicals, as you've seen. 2. If you copy the substructure instead of fragmenting, then the process may be simpler as there is an option to adjust t

Re: [OpenBabel-Devel] Getting SMILES Atom Order data

2018-05-21 Thread Naruki Yoshikawa
Hi Noel, I updated the fragmentation code. My code is available at https://github.com/n-yoshikawa/contributed/blob/ master/c%2B%2B/fragments/obfragment.cpp I enumerated ten most frequent fragments from our data by using this code. The result was as follows: SMILES percent [C]1=CC=[C]C=C1 11.14