def get_trinity_dict(file_name):
    """Generate a dict from Trinity.renamed.table"""
    with open(file_name) as f:
        table = f.readlines()

    table_dict = {}
    for line in table:
        split_line = line.split()
        table_dict[split_line[1].rstrip()]=split_line[0].rstrip()
    return table_dict