def parse_motif_name(motif_name):
    """
    Given a motif data header from HOMER, return a tuple consisting of the trimmed motif name, the motif class, and the LLR threshold
    """
    partial_name = motif_name.split('\t')[1].split('/')[0]
    motif_class = partial_name.split('(')[1].split(')')[0]
    trimmed_name = partial_name.split('(')[0]
    threshold = float(motif_name.split('\t')[2])
    return trimmed_name, motif_class, threshold
