def within_length(flowgram, minlength=0, maxlength=400):
 seq = flowgram.toSeq()
 l = len(seq)
 return ((l >= minlength) and (l <= maxlength))

def within_length ( flowgram , minlength = 0 , maxlength = 400 ) : seq = flowgram . toSeq ( ) l = len ( seq ) return ( ( l >= minlength ) and ( l <= maxlength ) )
checks if the seq of flowgram is within a specified length .