From 04f8232c37c40ef52451f92026231789922674bd Mon Sep 17 00:00:00 2001 From: mhkc Date: Thu, 15 Feb 2024 09:57:46 +0100 Subject: [PATCH] Fixed get-transcripts function --- api/app/main.py | 3 ++- api/app/routers/transcript.py | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/api/app/main.py b/api/app/main.py index d4f6b1e..59bdd00 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 81f47ef..42e07a5 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, )