[Open Babel] SMILES & SMARTS

2012-03-18 Thread Patrik Mika
Hello everybody, I am currently trying to generate SMARTS Patterns from an 'mol' or 'sdf' file using pybel. So far I haven't been able to succeed. Is it possible to convert Canonical-SMILES (which is possible) into SMARTS? Or can I use Canonical-SMILES with the pybel.smarts() module? I look forwar

Re: [Open Babel] SMILES & SMARTS

2012-03-18 Thread Geoff Hutchison
> I am currently trying to generate SMARTS Patterns from an 'mol' or 'sdf' file > using pybel. So far I haven't been able to succeed. > Is it possible to convert Canonical-SMILES (which is possible) into SMARTS? > Or can I use Canonical-SMILES with the pybel.smarts() module? > I look forward to y

Re: [Open Babel] SMILES & SMARTS

2012-03-19 Thread Patrik Mika
I think it's the other way around while SMARTS are SMILES one can treat them as such but since SMARTS are more specific and contain information more detailed, one cannot treat SMILES (canonical or not) as SMARTS. Pybel/openbabel seems to agree with me as i get this error message with SMILES but not

Re: [Open Babel] SMILES & SMARTS

2012-03-19 Thread Fredrik Wallner
No, Geoff is right. Taken from the Daylight manual at http://www.daylight.com/dayhtml/doc/theory/theory.smarts.html > All SMILES expressions are also valid SMARTS expressions, but the semantics > changes because SMILES describes molecules whereas SMARTS describes patterns. > The molecule represe

Re: [Open Babel] SMILES & SMARTS

2012-03-20 Thread Craig James
On Mon, Mar 19, 2012 at 2:58 AM, Fredrik Wallner wrote: > No, Geoff is right. Taken from the Daylight manual at > http://www.daylight.com/dayhtml/doc/theory/theory.smarts.html > > All SMILES expressions are also valid SMARTS expressions, but the > semantics changes because SMILES describes molecu

[Open Babel] SMILES, SMARTS, and PDB

2013-07-05 Thread Brett T. Hannigan
I have a database of molecules in pdb files. I'd like to go through each molecule and see if it has certain substructures, and if they do identify which atoms are part of that substructure. So it's easy enough to read the pdb file in, convert it to SMILES representation, and then do a SMARTS quer

Re: [Open Babel] SMILES, SMARTS, and PDB

2013-07-06 Thread Maciek Wójcikowski
Hello, You can "convert" from PDB to PDB using filter option ( http://openbabel.org/wiki/--filter_option) obabel input.pdb -O output.pdb --filter "s='CN'" If your database is really large, or you want to search multiple times, then I'd suggest using FastSearch for performance reasons. For further

Re: [Open Babel] SMILES, SMARTS, and PDB

2013-07-06 Thread Chris Morley
On 05/07/2013 17:54, Brett T. Hannigan wrote: > I have a database of molecules in pdb files. I'd like to go through > each molecule and see if it has certain substructures, and if they do > identify which atoms are part of that substructure. So it's easy enough > to read the pdb file in, convert

Re: [Open Babel] SMILES, SMARTS, and PDB

2013-07-08 Thread Maciek Wójcikowski
-- > *From:* Maciek Wójcikowski > *To:* Brett T. Hannigan > *Cc:* openbabel-discuss@lists.sourceforge.net > *Sent:* Saturday, July 6, 2013 6:21 AM > *Subject:* Re: [Open Babel] SMILES, SMARTS, and PDB > > Hello, > > You can "convert" from PDB to P

Re: [Open Babel] SMILES, SMARTS, and PDB

2013-07-08 Thread Maciek Wójcikowski
imagine identifying many other interesting sub-structures. >> >> -Brett >> >> -- >> *From:* Maciek Wójcikowski >> *To:* Brett T. Hannigan >> *Cc:* openbabel-discuss@lists.sourceforge.net >> *Sent:* Saturday, July 6, 2013 6

Re: [Open Babel] SMILES, SMARTS, and PDB

2013-07-08 Thread Wang, LiRong
On 05/07/2013 17:54, Brett T. Hannigan wrote: > I have a database of molecules in pdb files. I'd like to go through > each molecule and see if it has certain substructures, and if they do > identify which atoms are part of that substructure. So it's easy > enough to read the pdb file in, conve

Re: [Open Babel] SMILES, SMARTS, and PDB

2013-07-10 Thread Brett T. Hannigan
I think this will work great. Thanks for the suggestion. -Original Message- From: "Maciek Wójcikowski" Sent: ‎7/‎8/‎2013 12:06 PM To: "Brett Hannigan" Cc: "Brett T. Hannigan" ; "openbabel-discuss@lists.sourceforge.net" Subject: Re: [Open Bab

Re: [Open Babel] SMILES, SMARTS, and PDB

2013-07-10 Thread Brett Hannigan
nteresting sub-structures. -Brett From: Maciek Wójcikowski To: Brett T. Hannigan Cc: openbabel-discuss@lists.sourceforge.net Sent: Saturday, July 6, 2013 6:21 AM Subject: Re: [Open Babel] SMILES, SMARTS, and PDB Hello, You can "convert" from PD