def split_seq(curr_seq, barcode_len, primer_seq_len):
 curr_barcode = curr_seq[0:barcode_len]
 rest_of_seq = curr_seq[barcode_len:]
 primer_seq = rest_of_seq[0:primer_seq_len]
 rest_of_seq = rest_of_seq[primer_seq_len:]
 return (curr_barcode, primer_seq, rest_of_seq)

def split_seq ( curr_seq , barcode_len , primer_seq_len ) : curr_barcode = curr_seq [ 0 : barcode_len ] rest_of_seq = curr_seq [ barcode_len : ] primer_seq = rest_of_seq [ 0 : primer_seq_len ] rest_of_seq = rest_of_seq [ primer_seq_len : ] return ( curr_barcode , primer_seq , rest_of_seq )
split sequence into parts barcode .