Trees | Indices | Help |
---|
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
return a list of numbers mapping to items of the original pattern For example, if the Prosite pattern is "[AP](2)-D." matched against "PAD", then the mapping is [1, 1, 2], meaning the first character of the match ("P") is from the first Prosite group ("[AP]"), as is the second letter ("A"). The 3rd letter ("D") is mapped to group 2 of the pattern. |
returns the specific Prosite pattern used to find this sequence >>> p = Prosite.compile("[AP](2,3)-D.") >>> m = p.search(Seq.Seq("PAD")) >>> mapping = m.mapping() >>> mapped = m.mapped_pattern() >>> print str(m[1]), str(p[mapping[1]]), str(mapped[1]) P [AP](2,3) [AP] >>> print str(mapped) [AP]-[AP]-D. >>> Note that the original term includes the count, while the mapped pattern does the expansion. |
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Jul 14 01:49:30 2010 | http://epydoc.sourceforge.net |