def format_binary_sff_as_fna(sff_file, output_file=None, qual=False):
 if (output_file is None):
  output_file = StringIO()
 (_, reads) = parse_binary_sff(sff_file)
 for read in reads:
  output_file.write(format_read_as_fna(read, qual))
 return output_file

def format_binary_sff_as_fna ( sff_file , output_file = None , qual = False ) : if ( output_file is None ) : output_file = StringIO ( ) ( _ , reads ) = parse_binary_sff ( sff_file ) for read in reads : output_file . write ( format_read_as_fna ( read , qual ) ) return output_file
write a binary sff file to an output file .