Gene Symbol Matching reference page explaining how gene names, old symbols and aliases resolve

Open
#2,637 5 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
58/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
python

Research direction

Read claude/research/genes.md and genes/AGENTS.md, then inspect the existing Annotation → Pathogenicity Thresholds page and the GeneSymbol.resolve_name / resolve_names entry points. Trace the cited matching cases and per-release gene list behavior so the reference reflects current code. Done means the Genes menu links to an in-app page with the proposed rules, sources, counts, lookup box, and application points, plus a changelog entry for #2235.

Written by the indexing model from the issue text.

Description

🤖 Written by Claude

Part of #1668. Follows #2230 / #2235, which made every gene name lookup share one rule (GeneSymbol.resolve_name / resolve_names).

Problem

The rules for how a written gene name becomes a gene are documented only for developers (claude/research/genes.md, genes/AGENTS.md). A user typing SEPT2 into the classification export filter, a gene list, or a classification's gene symbol has nowhere in the app that explains what happens, and a tester (see the question on #2235) has no way to probe a name without finding a feature that uses it. readthedocs (VariantGrid and Shariant) covers gene IDs vs symbols and builds, nothing on aliases, and is a separate repo that lags the code.

Proposal

An in-app reference page, modelled on Annotation → Pathogenicity Thresholds: one template, served on every deployment, describing the current code.

Gene Symbol Matching page under the Genes menu, and the menu's top-bar link, so Shariant (which hides every other Genes item) still shows the menu with this one entry.

Contents:

  • The three resolution rules with worked examples: a current HGNC symbol is taken as written; a previous symbol (rename) goes to the current one and outranks an alias (SEPT2 → SEPTIN2, not SEPTIN6); an alias shared by several genes is refused as ambiguous naming the candidates. An approved symbol that is also another gene's alias stays itself (AIP, not AURKAIP1). An old GeneSymbol row with no HGNC record of its own still moves to the current name (ACPP → ACP3).
  • Where the aliases come from (HGNC previous / alias symbols, NCBI, legacy, manual) with counts from this database.
  • A "try a name" box that resolves what you type and shows the result, the rule that decided it, or the candidates for an ambiguous alias.
  • The per-release single-hop rule for gene list → gene ID matching (#1669), since users meet it on the gene list grid.
  • Where the rule is applied, so a tester knows what to exercise.

Also a changelog line for #2235 (bulk gene list / export matching on the same rule), which has none.

Dominant language
Python
Stars
31
Forks
4
Avg merge
4h 52m
Merged PRs (30d)
183

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SACGF/variantgrid

All issues in SACGF/variantgrid

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.