def GetGenes(transcripts):
    """from a list of transcripts get genes.
    """
    genes = {}
    for t in transcripts:
        if t.mGene not in genes:
            genes[t.mGene] = []
        genes[t.mGene].append(t)

    return genes