Bugs item #3041950, was opened at 2010-08-09 16:30
Message generated for change (Tracker Item Submitted) made by martinguetlein
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=428740&aid=3041950&group_id=40728
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library Functions
Group: 2.3.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Martin Gütlein (martinguetlein)
Assigned to: Nobody/Anonymous (nobody)
Summary: smarts pattern matcher fails
Initial Comment:
'n' does not match 'O=C1NC(=O)N(c2nc[nH](c12)C)C' with current build
(openbabel-2.3.0b2-20100803-r3942). Code example below. Code example works with
2.2.3.
Best Regards,
Martin
#include <iostream>
#include <openbabel/mol.h>
#include <openbabel/obconversion.h>
#include <openbabel/builder.h>
using namespace std;
using namespace OpenBabel;
int main(int argc,char **argv)
{
OBMol * mol = new OBMol();
OBConversion obconversion;
obconversion.SetInFormat("smiles");
obconversion.ReadString(mol, "O=C1NC(=O)N(c2nc[nH](c12)C)C");
OBSmartsPattern smartsPattern;
smartsPattern.Init("n");
cout << "n matches O=C1NC(=O)N(c2nc[nH](c12)C)C : " <<
smartsPattern.Match( *mol ) << "\n";
delete(mol);
return 0;
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=428740&aid=3041950&group_id=40728
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
OpenBabel-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-devel