You would need to specify the size of the ring and indicate that many
atoms. Then add "true" to the parameters of that find() call:
print {*}.find("SMARTS","[r]2[r][r][r][r]2", true)
for example, gives an array for 1crn:
({26 27 30:32})
({135 136 139:141})
({153 154 157:159})
({253 254 257:259})
({282 283 286:288})
These are the prolines, I think.
On Fri, Oct 26, 2012 at 11:03 AM, Rolf Huehne <[email protected]>wrote:
> Dear all,
>
> I would like to use SMARTS/SMILES to find specific groups of atoms but I
> am not sure about how to analyze and use the results.
>
> Let's s say I want to find all cycles within a structure and then use
> the center of mass of each cycle to do a further analysis with each cycle.
> I could run the following command:
>
> x = {*}.find("SMARTS","[r]")
>
> But then there is just a list of atoms in 'x' and I don't know which
> atom belongs to which cycle.
>
> Q: Is there a way to preserve the grouping defined by the SMARTS string
> within a search result?
>
> Q: Or do I have to loop through all atoms in the result list and search
> again somehow for each atom to find the other atoms belonging to it's
> group?
>
> Regards,
> Rolf
> --
>
> Rolf Huehne
> Postdoc
>
> Leibniz Institute for Age Research - Fritz Lipmann Institute (FLI)
> Beutenbergstrasse 11
> 07745 Jena, Germany
>
> Phone: +49 3641 65 6205
> Fax: +49 3641 65 6210
> E-Mail: [email protected]
> Website: http://www.fli-leibniz.de
>
> Scientific Director: Prof. Dr. K. Lenhard Rudolph
> Head of Administration: Dr. Daniele Barthel
> Chairman of Board of Trustees: Dennys Klein
>
> VAT No: DE 153 925 464
> Register of Associations: No. 296, Amtsgericht Jena
> Tax Number: 162/141/08228
>
>
>
> ------------------------------------------------------------------------------
> The Windows 8 Center
> In partnership with Sourceforge
> Your idea - your app - 30 days. Get started!
> http://windows8center.sourceforge.net/
> what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
The Windows 8 Center
In partnership with Sourceforge
Your idea - your app - 30 days. Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users