diff --git a/api/app/main.py b/api/app/main.py index d4f6b1e6..59bdd004 100644 --- a/api/app/main.py +++ b/api/app/main.py @@ -5,7 +5,7 @@ from .config import allowed_origins from .db import close_mongo_connection, connect_to_mongo -from .routers import annotation, chromosome, root, sample, variant +from .routers import annotation, transcript, chromosome, root, sample, variant def configure_cors(application): @@ -38,4 +38,5 @@ def configure_cors(application): app.include_router(chromosome.router) app.include_router(sample.router) app.include_router(variant.router) +app.include_router(transcript.router) app.include_router(annotation.router) diff --git a/api/app/routers/transcript.py b/api/app/routers/transcript.py index 81f47eff..42e07a5b 100644 --- a/api/app/routers/transcript.py +++ b/api/app/routers/transcript.py @@ -39,9 +39,7 @@ def get_transcript_data( # Get transcripts within span [start_pos, end_pos] or transcripts that go over the span transcripts = list( get_transcripts_in_region( - chrom=chrom, - start_pos=start_pos, - end_pos=end_pos, + region=region, genome_build=genome_build, height_order=1 if collapsed else None, )