Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Aug 7, 2024
1 parent 105e404 commit e1d243a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/curfu/gene_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self, suggestions_file: Path | None = None) -> None:
@staticmethod
def get_normalized_gene(
term: str, normalizer: QueryHandler
) -> tuple[str, str, str | str | None]:
) -> tuple[str, str, str | None]:
"""Get normalized ID given gene symbol/label/alias.
:param term: user-entered gene term
Expand Down
2 changes: 1 addition & 1 deletion server/src/curfu/routers/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ 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}"], "transcripts": None}
if not normalized.gene.id.replace("normalize.gene.", "").lower().startswith("hgnc"):
if not normalized.normalized_id.startswith("hgnc"):
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(
Expand Down

0 comments on commit e1d243a

Please sign in to comment.