Hi,

I think Noel’s suggestion is correct.

I use SMARTSviewer to work out SMARTS queries.

http://smartsview.zbh.uni-hamburg.de <http://smartsview.zbh.uni-hamburg.de/>

Cheers
Chris

> 
> Message: 2
> Date: Mon, 12 Sep 2016 10:01:10 +0100
> From: "Noel O'Boyle" <[email protected]>
> Subject: Re: [Open Babel] SMARTS question
> To: Gravestock David GBJH <[email protected]>
> Cc: "[email protected]"
>       <[email protected]>
> Message-ID:
>       <caoc-gk1rop98h0fntlz1bpwu+cm1bg7swsfcwl3bjqnkyvw...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Does [!#1] work?
> 
> On 12 September 2016 at 09:23, Gravestock David GBJH <
> [email protected]> wrote:
> 
>> Good day,
>> 
>> 
>> 
>> I wonder if somebody could help me with the construction of a SMARTS
>> pattern?
>> 
>> 
>> 
>> How does one specify a non-hydrogen atom?  For example, when I use
>> [CH3]C([!H])=O to specify the generalised molecule below where A = any
>> non-hydrogen atom I don?t get back the correct results.
>> 
>> 
>> 
>> 
>> 
>> The [!H] seems to specify that the atom does not have one further H atom.
>> 
>> 
>> 
>> Regards,
>> 
>> David

------------------------------------------------------------------------------
_______________________________________________
OpenBabel-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to