def make_model(transcript_id, exons):
    # assume the same chromosome and gene for all exons
    chromosome = exons[0]['chrom']
    gene_id = exons[0]['elements'][transcript_id]
    tot_length = sum((exon['chromEnd'] - exon['chromStart']) for exon in exons)
    tx_model = Transcript(id=transcript_id, chromosome=chromosome,
                          length=tot_length, gene_id=gene_id)
    return tx_model
Generate transcript model from a list of exons.
dataset/ETHPy150Open robinandeer/chanjo/chanjo/load/txlink.py/make_model