cation-query

A read-only Python API over the CATION release: look up genes, tissues, cell types, channelopathies and per-entry evidence cards.

Setup

cation-query 1.0.0 is released with the data deposit. It reads a local copy of the release package (it does not query this website), needs Python ≥ 3.10 and nothing else. Tell it where the release package is:

export CATION_RELEASE_DIR=/path/to/cation_release

Quick start

from cation_query import QueryAtlas

atlas = QueryAtlas()
atlas.summary()                                  # release v1.2-354, counts
scn5a = atlas.gene("SCN5A")                      # or an Ensembl ID
scn5a["evidence_card"]["overall_evidence"]       # GOLD / SILVER / BRONZE
atlas.tissue("heart")["genes_by_expr"][:5]      # top channels in a tissue
atlas.cell_type("chromaffin cell")["top_genes"]
atlas.channelopathies()["categories"].keys()
atlas.search_genes("SCN")

Methods

MethodReturns
summary()Release version and counts
gene(symbol_or_ensembl)Gene record + evidence card (tier summary, warnings)
genes()All gene symbols
gene_card(symbol)Evidence card only
search_genes(query)Free-text gene search
tissues()All tissue names
tissue(name)Genes measured in a tissue, ranked by expression, plus its cell count
cell_types()All cell-type names
cell_type(name)Cell-type evidence card + top genes
channelopathies()Disease → gene lists and localisation

Command line

cation-query summary
cation-query gene SCN5A
cation-query tissue heart

Versioning: package 1.0.x tracks atlas release v1.2-354 (CELLxGENE Census LTS 2025-11-08).