from collections import OrderedDict


def read_markers_gmt(filepath):
    """
    Read a marker file from a gmt.
    """
    ct_dict = OrderedDict()
    with open(filepath) as file_gmt:
        for line in file_gmt:
            values = line.strip().split('\t')
            ct_dict[values[0]] = values[2:]
    return ct_dict