You could try some sort of recursive SMARTS on the first ring atom, e.g.
[!#1][$(*[!#6]),$(**@[!#6]),$(**@*[!#6])]1*****1[#5]
[!#1][$(*[!#6]),$(*@*[!#6]),$(**@*[!#6])]1****1[#5]
You could also fold the [!#1] into the atom it is attached to, e.g.
[H0;$(*[!#6]),$(**@[!#6]),$(**@*[!#6])]1*****1[#5]
[H0;$(*[!#6]),$(**@[!#6]),$(**@*[!#6])]1****1[#5]
The '@' ring bond designator stops the heteroatom simply matching either
the boron or the oxygen attached to the boron.
Steve
On 7 March 2017 at 09:52, Gravestock David GBJH <
david.gravest...@syngenta.com> wrote:
>
>
> Hi,
>
>
>
> I was wondering if somebody could help me out with generating a SMARTS
> pattern.
>
>
>
> I wish to search for 5-/6-membered heteroaryl boronic acids/esters alpha
> to a non-hydrogen substituent.
>
>
>
> I have done a search using the following SMARTS
>
> [!#1]*1*****1[#5]
>
> [!#1]*1****1[#5]
>
> But this of course also brings back carbocyclic compounds. Is there a way
> of also specifying the fact that it needs to be a heteroaryl ring?
>
>
>
> Any help will be much appreciated.
>
>
>
> Many thanks,
>
> David
> ------------------------------
>
> *Syngenta Limited, Registered in England No 2710846; Registered Office :
> Syngenta, Jealott's Hill International Research Centre, Bracknell,
> Berkshire, RG42 6EY, United Kingdom*
>
>
> ------------------------------
> * This message may contain confidential information. If you are not the
> designated recipient, please notify the sender immediately, and delete the
> original and any copies. Any use of the message by you is prohibited. *
>
> ------------------------------------------------------------
> ------------------
> Announcing the Oxford Dictionaries API! The API offers world-renowned
> dictionary content that is easy and intuitive to access. Sign up for an
> account today to start using our lexical data to power your apps and
> projects. Get started today and enter our developer competition.
> http://sdm.link/oxford
> _______________________________________________
> OpenBabel-discuss mailing list
> OpenBabel-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
>
>
------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss