def write_unpaired_read(data, sff_fh, seq_fh, qual_fh, xml_fh):
 (seq, qual) = get_read_data(data)
 if (len(seq) == 0):
  return
 write_sequence(data['name'], seq, qual, seq_fh, qual_fh)
 anci = create_xml_for_unpaired_read(data, sff_fh.name)
 if (anci is not None):
  xml_fh.write(anci)
 return

def write_unpaired_read ( data , sff_fh , seq_fh , qual_fh , xml_fh ) : ( seq , qual ) = get_read_data ( data ) if ( len ( seq ) == 0 ) : return write_sequence ( data [ 'name' ] , seq , qual , seq_fh , qual_fh ) anci = create_xml_for_unpaired_read ( data , sff_fh . name ) if ( anci is not None ) : xml_fh . write ( anci ) return
writes an unpaired read into fasta .