[Chimera-users] Find subsequence programatically

Eric Pettersen pett at cgl.ucsf.edu
Thu Jan 22 16:37:25 PST 2015


On Jan 22, 2015, at 4:21 PM, Thomas Hrabe <thrabe at sanfordburnham.org> wrote:

> Hi Chimera Team,
> 
> How can I automate the Sequence View -> Edit -> Find Subsequence Tool programmatically with the Chimera shell or better within python?

I don't know what your context is here exactly, but if you have a Sequence object you can use its regexMatch or prositeMatch methods to find subsequences.  They return lists of (start, end) tuples.  If you need more info, provide some more detail about your usage context and I can help better.

--Eric

                        Eric Pettersen
                        UCSF Computer Graphics Lab
                        http://www.cgl.ucsf.edu


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20150122/1787dc36/attachment.html>


More information about the Chimera-users mailing list