Skip to content

Commit

Permalink
Fixed get-transcripts function
Browse files Browse the repository at this point in the history
  • Loading branch information
mhkc committed Feb 15, 2024
1 parent 41ad3db commit 04f8232
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion api/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)
4 changes: 1 addition & 3 deletions api/app/routers/transcript.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit 04f8232

Please sign in to comment.