def get_label_line(sample_id, fasta_label, bc, corrected_bc, num_errors):
 orig_label = fasta_label.split()[0]
 final_label = ('%s %s orig_bc=%s new_bc=%s bc_diffs=%d' % (sample_id, orig_label, bc, corrected_bc, num_errors))
 return final_label

def get_label_line ( sample_id , fasta_label , bc , corrected_bc , num_errors ) : orig_label = fasta_label . split ( ) [ 0 ] final_label = ( '%s %s orig_bc=%s new_bc=%s bc_diffs=%d' % ( sample_id , orig_label , bc , corrected_bc , num_errors ) ) return final_label
returns line to use for fasta/qual output label sample_id: enumerated sampleid fasta_label: original fasta label bc: original barcode sequence corrected_barcode: corrected barcode sequence num_errors: number of errors/mismatches in barcode sequence .