def get_barcode(curr_seq, barcode_len):
 raw_barcode = curr_seq[0:barcode_len]
 raw_seq = curr_seq[barcode_len:]
 return (raw_barcode, raw_seq)

def get_barcode ( curr_seq , barcode_len ) : raw_barcode = curr_seq [ 0 : barcode_len ] raw_seq = curr_seq [ barcode_len : ] return ( raw_barcode , raw_seq )
split sequence into barcode and remaining sequence linker and primer part of remaining sequence .