def data_frame_input_format(tag_score, tag_sequence, include_sequences):
    """
    Take two dicts -- from tag to score and tag to sequence -- as well as a list
    to filter by sequences -- and turn them into the 'list-of-identically-keyed-dicts'
    input format for a pandas DataFrame constructor.
    """
    protodf = []
    for tag in tag_score.keys():
        if not tag in tag_sequence: continue
        if not tag_sequence[tag] in include_sequences: continue
        protodf.append({'tag': tag, 'sequence': tag_sequence[tag], 'score': tag_score[tag]})
    return protodf