Esempio n. 1
0
def map_index_name(index, mismatch=0):
    """Map the index sequences to the known names, if possible. Requires the samplesheet module.
    """

    names = []
    for name, sequence in BASIC_LOOKUP.items():
        try:
            if index != sequence and hamming_distance(index, sequence) > mismatch:
                continue
            names.append(name)
        except:
            pass

    return names
Esempio n. 2
0
def map_index_name(index, mismatch=0):
    """Map the index sequences to the known names, if possible. Requires the samplesheet module.
    """

    names = []
    for name, sequence in BASIC_LOOKUP.items():
        try:
            if index != sequence and hamming_distance(index,
                                                      sequence) > mismatch:
                continue
            names.append(name)
        except:
            pass

    return names