def trim(self,start,end): ''' Given a start and an end index trim the quality score string attribute and keep the middle. start and end are integers. Input: start : Integer end : Integer Output: modify self.dna_str ''' self.dna_str = trim(self.dna_str,start,end)
def trim(self,start,end): ''' Given a start and an end index trim the quality score string attribute and keep the middle. start and end are integers. Input: start : Integer end : Integer Output: modify self.qualString and self.qualList >>> x = qualityScore('^acebeg') >>> x.convert() >>> x.trim(1, 2) >>> x.qualString 'ac' >>> x.qualList [97, 99] ''' self.qualString = trim(self.qualString,start,end) self.qualList = trim(self.qualList,start,end)