From 3414fbee573419c4ac2039df2a7be92aec2a1bd5 Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Fri, 2 Aug 2024 16:32:56 -0400 Subject: [PATCH] fix tx utils bug --- server/src/curfu/routers/utilities.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/src/curfu/routers/utilities.py b/server/src/curfu/routers/utilities.py index 2b4a27b0..91f58cfe 100644 --- a/server/src/curfu/routers/utilities.py +++ b/server/src/curfu/routers/utilities.py @@ -38,9 +38,9 @@ def get_mane_transcripts(request: Request, term: str) -> dict: """ normalized = request.app.state.fusor.gene_normalizer.normalize(term) if normalized.match_type == gene_schemas.MatchType.NO_MATCH: - return {"warnings": [f"Normalization error: {term}"]} + return {"warnings": [f"Normalization error: {term}"], "transcripts": None} if not normalized.gene.id.replace("normalize.gene.", "").lower().startswith("hgnc"): - return {"warnings": [f"No HGNC symbol: {term}"]} + return {"warnings": [f"No HGNC symbol: {term}"], "transcripts": None} symbol = normalized.gene.label transcripts = request.app.state.fusor.cool_seq_tool.mane_transcript_mappings.get_gene_mane_data( symbol @@ -114,7 +114,6 @@ async def get_genome_coords( exon_end=exon_end, exon_start_offset=exon_start_offset, exon_end_offset=exon_end_offset, - residue_mode="inter-residue", ) warnings = response.warnings if warnings: