ultraplex/__main__.py
def make_3p_bc_dict(bcs, min_score):
    """
	Generates a dictionary that matches a given sequence with
	its best 3' barcode match, or "no_match"
	"""
    # First, find positions of barcode bases (not UMIs) relative to 3' end of read

    bcl = len([a for a, b in enumerate(bcs[0]) if b != "N"])  # number of non-N characters in barcode
    all_seqs = make_all_seqs(bcl)
    three_p_match_d = {}
    for seq in all_seqs:
        # now check if there actually is a match
        three_p_match_d[seq] = score_barcode_for_dict(seq, bcs, min_score)
    return three_p_match_d

	Generates a dictionary that matches a given sequence with
	its best 3' barcode match, or "no_match"
	
Generates a dictionary that matches a given sequence with
its best 3' barcode match, or "no_match"
Generates a dictionary that matches a given sequence with its best 3 ' barcode match or " no_match "
def make_3p_bc_dict(bcs, min_score):
    bcl = len([a for a, b in enumerate(bcs[0]) if b != "N"])  
    all_seqs = make_all_seqs(bcl)
    three_p_match_d = {}
    for seq in all_seqs:
        three_p_match_d[seq] = score_barcode_for_dict(seq, bcs, min_score)
    return three_p_match_d
def make_3p_bc_dict ( bcs , min_score ) : bcl = len ( [ a for a , b in enumerate ( bcs [ 0 ] ) if b != "N" ] ) all_seqs = make_all_seqs ( bcl ) three_p_match_d = { } for seq in all_seqs : three_p_match_d [ seq ] = score_barcode_for_dict ( seq , bcs , min_score ) return three_p_match_d
Generates a dictionary that matches a given sequence with
its best 3' barcode match, or "no_match"
Generates a dictionary that matches a given sequence with its best 3 ' barcode match or " no_match "
"""
	Generates a dictionary that matches a given sequence with
	its best 3' barcode match, or "no_match"
	""" # First, find positions of barcode bases (not UMIs) relative to 3' end of read
 # number of non-N characters in barcode
 # now check if there actually is a match

bcs
min_score