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: