[Biopython-dev] [Bug 2386] New: 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
Mon Oct 22 16:52:12 UTC 2007
http://bugzilla.open-bio.org/show_bug.cgi?id=2386
Summary: Bio.Seq.Seq and MutableSeq count() method only works for
single residues
Product: Biopython
Version: Not Applicable
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: Main Distribution
AssignedTo: biopython-dev at biopython.org
ReportedBy: biopython-bugzilla at maubp.freeserve.co.uk
Logging this bug to report an issue raised on the mailing list by Jimmy
Musselwhite.
The Seq object and MutableSeq objects' count methods only works for single
residues (e.g. "G"). Zero is returned when asked to count a multicharacter
string, "GG" for example.
For compatibility with strings, my_seq.count("GG") should work as expected,
returning the same value as my_seq.tostring().count("GG")
Doing this for the Seq object is trivial. Adding support for the MutableSeq
could be done via the tostring() method but there might be a more elegant
solution with less overhead.
--
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