Re: [Tutor] number of mismatches in a string

2012-03-13 Thread Emile van Sebille
On 3/2/2012 11:11 AM Hs Hs said... Hi: I have the following table and I am interested in calculating mismatch ratio. I am not completely clear how to do this and any help is deeply appreciated. ...and then there's always the standard library: Help on class SequenceMatcher in module difflib: c

Re: [Tutor] number of mismatches in a string

2012-03-02 Thread Alan Gauld
On 02/03/12 19:11, Hs Hs wrote: 1. I have to count how many A or T or G or C (believe me only these 4 letters will appear in this, i will not see Z or B or K etc) This suggests to me that its related to chromosome analysis or somesuch? There are some python libraries for biochemistry work. Ma

Re: [Tutor] number of mismatches in a string

2012-03-02 Thread Jerry Hill
On Fri, Mar 2, 2012 at 2:11 PM, Hs Hs wrote: > Hi: > I have the following table and I am interested in calculating mismatch > ratio. I am not completely clear how to do this and any help is deeply > appreciated. > > Length     Matches > 77      24A0T9T36 > 71      25^T9^T37 > 60      25^T9^T26 > 6

Re: [Tutor] number of mismatches in a string

2012-03-02 Thread bob gailer
On 3/2/2012 2:11 PM, Hs Hs wrote: Hi: I have the following table and I am interested in calculating mismatch ratio. I am not completely clear how to do this and any help is deeply appreciated. Length Matches 77 24A0T9T36 71 25^T9^T37 60 25^T9^T26 62 42A19 In length c

Re: [Tutor] number of mismatches in a string

2012-03-02 Thread Albert-Jan Roskam
? ~~  > > From: Hs Hs >To: "tutor@python.org" >Sent: Friday, March 2, 2012 8:11 PM >Subject: [Tutor] number of mismatches in a string > > >Hi: >I have the following table and I am interested in calculating mismatch ratio. >I am not comp

[Tutor] number of mismatches in a string

2012-03-02 Thread Hs Hs
Hi: I have the following table and I am interested in calculating mismatch ratio. I am not completely clear how to do this and any help is deeply appreciated.  Length     Matches 77      24A0T9T36 71      25^T9^T37 60      25^T9^T26 62      42A19 In length column I have length of the charact