def create_xml_for_unpaired_read(data, fname):
 to_print = [create_basic_xml_info(data['name'], fname)]
 if (not config['clip']):
  to_print.append(create_clip_xml_info(data['number_of_bases'], data['clip_adapter_left'], data['clip_adapter_right'], data['clip_qual_left'], data['clip_qual_right']))
 to_print.append('    </trace>\n')
 return ''.join(to_print)

def create_xml_for_unpaired_read ( data , fname ) : to_print = [ create_basic_xml_info ( data [ 'name' ] , fname ) ] if ( not config [ 'clip' ] ) : to_print . append ( create_clip_xml_info ( data [ 'number_of_bases' ] , data [ 'clip_adapter_left' ] , data [ 'clip_adapter_right' ] , data [ 'clip_qual_left' ] , data [ 'clip_qual_right' ] ) ) to_print . append ( '    </trace>\n' ) return '' . join ( to_print )
given the data for one read it returns an str with the xml ancillary data .