def readSampleFile(filepath):
    """
    Parse sample file into dictionary.
    Return sample dictionary and sample order list.
    """
    samples = {}
    sOrder = []
    with open(filepath, "r") as fh:
        for l in fh:
            l = l.rstrip("\n")
            s, r = l.split("\t")
            try:
                samples[s]
            except KeyError:
                samples[s] = []
            samples[s].append(r)
            sOrder.append((s, r))
    return samples, sOrder