def write_fasta_line(demultiplexed_seqs_f, fasta_seq, label_line, keep_barcode, bc_len):
 if keep_barcode:
  final_seq = fasta_seq
 else:
  final_seq = fasta_seq[bc_len:]
 demultiplexed_seqs_f.write(('>%s\n' % label_line))
 demultiplexed_seqs_f.write(('%s\n' % final_seq))

def write_fasta_line ( demultiplexed_seqs_f , fasta_seq , label_line , keep_barcode , bc_len ) : if keep_barcode : final_seq = fasta_seq else : final_seq = fasta_seq [ bc_len : ] demultiplexed_seqs_f . write ( ( '>%s\n' % label_line ) ) demultiplexed_seqs_f . write ( ( '%s\n' % final_seq ) )
writes fasta label .