def parse_weight_file(inputFile):
    """The RSCU file contains two columns: codon and weight"""
    weights = {}
    i = 0
    with open(inputFile, 'r') as f:
        for line in f:
            i += 1
            if line.strip() == '':
                continue
            if i == 1:
                continue
            codon = str(line.strip().split('\t')[0])
            weight = float(line.strip().split('\t')[1])
            weights[codon] = weight
    return weights
