def make_percent_align_filter(min_percent):
 min_percent = (float(min_percent) * 100)
 def align_filter(blast_result):
  if (float(blast_result['% IDENTITY']) < min_percent):
   return False
  else:
   return True
 return align_filter

def make_percent_align_filter ( min_percent ) : min_percent = ( float ( min_percent ) * 100 ) def align_filter ( blast_result ) : if ( float ( blast_result [ '% IDENTITY' ] ) < min_percent ) : return False else : return True return align_filter
return a filter function that filters blast results on % alignment min_percent -- minimum percent match as a float between 0 and 1 .