def getMinLen(fastaIn): headerL = [] seqL = [] [headerL,seqL] = snoPatternSplit.fastaRead(fastaIn,True,False) minL = 99999999 i = 0 for seq in seqL: i += 1 if len(seq)<minL: minL = len(seq) print i, ':',minL, ':',seq return minL
def getMaxLen(fastaIn): headerL = [] seqL = [] [headerL,seqL] = snoPatternSplit.fastaRead(fastaIn,True,False) maxL = 0 i = 0 for seq in seqL: i += 1 if len(seq)>maxL: maxL = len(seq) print i, ":",maxL, ":",seq return maxL