ultraplex/__main__.py
def find_bc_and_umi_pos(barcodes):
    """
	This function finds the coordinates of the umi and barcodes nucleotides
	"""
    bcs_poses = {}
    umi_poses = {}
    for bc in barcodes:
        bcs_poses[bc] = [i for i in range(len(bc)) if bc[i] != "N"]
        umi_poses[bc] = [i for i in range(len(bc)) if bc[i] == "N"]

    # /# we assume that the barcode is always the same
    bc_pos = bcs_poses[barcodes[0]]

    umi_poses["no_match"] = []

    return bc_pos, umi_poses

	This function finds the coordinates of the umi and barcodes nucleotides
	
This function finds the coordinates of the umi and barcodes nucleotides
This function finds the coordinates of the umi and barcodes nucleotides
def find_bc_and_umi_pos(barcodes):
    bcs_poses = {}
    umi_poses = {}
    for bc in barcodes:
        bcs_poses[bc] = [i for i in range(len(bc)) if bc[i] != "N"]
        umi_poses[bc] = [i for i in range(len(bc)) if bc[i] == "N"]
    bc_pos = bcs_poses[barcodes[0]]
    umi_poses["no_match"] = []
    return bc_pos, umi_poses
def find_bc_and_umi_pos ( barcodes ) : bcs_poses = { } umi_poses = { } for bc in barcodes : bcs_poses [ bc ] = [ i for i in range ( len ( bc ) ) if bc [ i ] != "N" ] umi_poses [ bc ] = [ i for i in range ( len ( bc ) ) if bc [ i ] == "N" ] bc_pos = bcs_poses [ barcodes [ 0 ] ] umi_poses [ "no_match" ] = [ ] return bc_pos , umi_poses
This function finds the coordinates of the umi and barcodes nucleotides
This function finds the coordinates of the umi and barcodes nucleotides
"""
	This function finds the coordinates of the umi and barcodes nucleotides
	""" # /# we assume that the barcode is always the same

barcodes