Skip to content

feat(genes): multi-gene symbol/Ensembl search in CLI, MCP, and Catalog - #16

Merged
timtreis merged 5 commits into
mainfrom
feat/gene-search-client
Oct 9, 2026
Merged

timtreis merged 5 commits into
mainfrom
feat/gene-search-client

Conversation

@timtreis

@timtreis timtreis commented Oct 8, 2026

Copy link
Copy Markdown
Member

What

Python-side multi-gene search over the published gene_index.parquet, surfaced in the Catalog API, CLI, and MCP tools.

  • src/sddb/genes.py — GeneIndex reader bound to a Catalog; resolve symbols or Ensembl ids to dataset uids, union within a token and AND across tokens, with casefolded symbol/feature_id caches for speed over the ~10M-row index.
  • Ranked resolution handles Ensembl ids; bronze-tier datasets flagged in the CLI; schema validated on load.

Why

Gives the CLI/MCP the same cross-dataset gene search the website offers, over the same release artifact.

Scope

Independent of the website fix — this consumes the existing gene_index.parquet directly and needs no release change. Producer: theislab/spatialdata-db feat/gene-search-foundation; web consumer: theislab/spatialdata-db-web feat/gene-search-web.

@timtreis

timtreis commented Oct 8, 2026

Copy link
Copy Markdown
Member Author

Related: producer theislab/spatialdata-db#143 (builds the gene index); website consumer theislab/spatialdata-db-web#13. This PR is independent of the website rollout — it reads the existing gene_index.parquet directly.

@timtreis
timtreis merged commit a009a14 into main Oct 9, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant