def format_oxford(abundance):
    """
    Takes oxford abundance file and produces dictionary with counts per
    transcript.

    :param abundance: File containing transcript counts
    :return: Dictionary: key = transcript id, value = counts
    """
    ox_dict = {}
    with open(abundance, 'r') as file:
        # Skip header
        next(file)
        for line in file:
            line = line.strip("\n").split(',')
            transcript_id = line[0]
            # Can contain an empty string instead of 0
            counts = sum([int(count) for count in line[1:] if count != ''])
            ox_dict[transcript_id] = counts
    return ox_dict