User f05f6b8c05
07-12-2010 20:01:39
Hi,
When I make a molecule from SMARTS string "cn(=O)c", the aromatic bonds are assigned type 6 (SINGLE_OR_AROMATIC); however, when the SMARTS string is imported as a SMILES, then the aromatic bonds are assigned type 4 (AROMATIC). Why are they not assigned to be just AROMATIC as a SMARTS string? How can I get them to be assigned as just AROMATIC?
Thanks for any help
Andrew
This code generates SINGLE_OR_AROMATIC aromatic bonds:
MolHandler mhl = new MolHandler("cn(=O)c", true);
Molecule m = mhl.getMolecule();
MolBond[] mbs = mm.getBondArray();
for (int j=0; j<mbs.length; ++j) {
System.out.println(mbs[j].getType());
}
This code generates AROMATIC aromatic bonds:
MolHandler mhl = new MolHandler("cn(=O)c", false);
Molecule m = mhl.getMolecule();
MolBond[] mbs = mm.getBondArray();
for (int j=0; j<mbs.length; ++j) {
System.out.println(mbs[j].getType());
}