def sequences_to_file(results, outfile_name):
 f = open(outfile_name, 'w+')
 for (label, seq) in results:
  output_lines = []
  output_lines.append(('>%s\n' % label))
  output_lines.append(('%s\n' % seq))
  f.writelines(output_lines)
 f.close()

def sequences_to_file ( results , outfile_name ) : f = open ( outfile_name , 'w+' ) for ( label , seq ) in results : output_lines = [ ] output_lines . append ( ( '>%s\n' % label ) ) output_lines . append ( ( '%s\n' % seq ) ) f . writelines ( output_lines ) f . close ( )
translate a generator of label .