[Biopython-dev] [Bug 2386] Bio.Seq.Seq and MutableSeq count() method only works for single residues

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Tue Oct 30 14:25:01 UTC 2007


http://bugzilla.open-bio.org/show_bug.cgi?id=2386





------- Comment #2 from dalloliogm at gmail.com  2007-10-30 10:25 EST -------
The new code is good, but please consider about implementing case-insensitive
searches:

>>> Seq('AACCCCaa').count('a')
... 2
>>> Seq('AACCCCaa').count('a', 'i')
... 4

they could be useful in many cases, because sometimes one has to deal
mixed-case sequences.

I think the easiest way to implement this would be by using regular
expressions..


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Biopython-dev mailing list