[BioPython] The count method of a Seq (or MutableSeq) object

Leighton Pritchard lpritc at scri.ac.uk
Fri Mar 6 15:47:37 UTC 2009


On 06/03/2009 15:06, "Bruce Southey" <bsouthey at gmail.com> wrote:

> Peter wrote:
>> On Fri, Mar 6, 2009 at 1:14 PM, Brad Chapman <chapmanb at 50mail.com> wrote:
unless someone has a use case for the current count()
>>> function, we should deprecate and eventually remove it. Overriding
>>> the string API where it makes sense is good, but here it seems to be
>>> creating confusion and not solving a problem. If someone needs the
>>> real string count, they can always do str(your_seq).count("GG").
>>>     
> I have already given one user case where overlapping counts is totally
> inappropriate! Unique codon counting is extremely important in many
> areas including gene prediction (possible splicing sites) and molecular
> evolution (like codon usage).

We're not discussing codon counting though, we're discussing counting
occurrences of an arbitrary substring in a sequence.  They're not the same
operation, even though they both involve counting.

L.

-- 
Dr Leighton Pritchard MRSC
D131, Plant Pathology Programme, SCRI
Errol Road, Invergowrie, Perth and Kinross, Scotland, DD2 5DA
e:lpritc at scri.ac.uk       w:http://www.scri.ac.uk/staff/leightonpritchard
gpg/pgp: 0xFEFC205C       tel:+44(0)1382 562731 x2405


______________________________________________________________________
SCRI, Invergowrie, Dundee, DD2 5DA.  
The Scottish Crop Research Institute is a charitable company limited by
guarantee. 
Registered in Scotland No: SC 29367.
Recognised by the Inland Revenue as a Scottish Charity No: SC 006662.


DISCLAIMER:

This email is from the Scottish Crop Research Institute, but the views 
expressed by the sender are not necessarily the views of SCRI and its 
subsidiaries.  This email and any files transmitted with it are
confidential

to the intended recipient at the e-mail address to which it has been 
addressed.  It may not be disclosed or used by any other than that
addressee.
If you are not the intended recipient you are requested to preserve this

confidentiality and you must not use, disclose, copy, print or rely on
this 
e-mail in any way. Please notify postmaster at scri.ac.uk quoting the 
name of the sender and delete the email from your system.

Although SCRI has taken reasonable precautions to ensure no viruses are 
present in this email, neither the Institute nor the sender accepts any 
responsibility for any viruses, and it is your responsibility to scan
the email and the attachments (if any).
______________________________________________________________________



More information about the Biopython mailing list