IDTrack converts gene identifiers (Ensembl gene, transcript and translation ids, symbols, and the ids of external databases such as HGNC, NCBI Gene, RefSeq and UniProt) to the genes of one chosen Ensembl release, or to their ids in a chosen database. It is for anyone with gene lists or matrices made with different Ensembl releases, genome assemblies or databases. It follows each identifier through Ensembl's own history of retired, merged and split ids, across assemblies; it says how each string was read and which evidence decided; it returns a tie instead of a guess when the evidence cannot decide; and it states its own limits with how often they matter.
It supports human, mouse, pig, rhesus macaque and cynomolgus macaque, on Python 3.12 to 3.15.
$ pip install idtrackimport os
from idtrack import API
os.makedirs("./idtrack_cache", exist_ok=True) # the local repository: tables and graph files
api = API.build("homo_sapiens", 115, "./idtrack_cache") # built once (hours for human), then loaded in seconds
print(api.convert("TP53").targets()) # ('ENSG00000141510.20',)
print(api.convert("ENSG00000141510", from_release=100, final_database="HGNC Symbol").targets()) # ('TP53',)The same from the command line:
$ idtrack build human 115 --repository idtrack_cache
$ idtrack convert idtrack_cache/graph_homo_sapiens_assembly38_min48_max115.npz TP53 BRCA1- Across releases: an identifier of any release from the organism's first one in IDTrack to the graph's snapshot release converts to any other, through Ensembl's id history (versions, replacements, splits, merges, with Ensembl's mapping scores).
- Across assemblies: identifiers of earlier genome builds (human NCBI36 and GRCh37, mouse NCBIM37 and GRCm38, ...) convert to the build Ensembl maintains at the target release.
- Across databases: symbols and ids of external databases convert to Ensembl genes and back, read as each database wrote them at each release.
- Reproducible: a graph is fixed by its organism, snapshot release and selection of databases; the same graph gives the same answer in every run, and records what built it.
- Transparent: every result has a status and, where it has no target, a reason; ties are returned as ties; with
explain=Truethe path behind the answer is data. - Fast once built: a graph loads from disk in 0.5 to 4 seconds into 0.25 to 1.4 GB of memory, without network, and a conversion takes about 0.2 to 0.3 ms at the median.
- Harmonization of
.h5addatasets onto one release (pip install "idtrack[harmonize]").
https://idtrack.readthedocs.io/: the Quickstart, how IDTrack answers, its limitations, the comparison with other tools, the command line, the tutorials and the reference. Setting up, building and checking graphs, testing and releasing: SETUP.md.
IDTrack, its web app and its benchmarks carry one version number, and each release tags all three v<version>.
- idtrack-web: the web app (an HTTP api and a frontend) that converts identifiers with IDTrack from a browser, without installing the package or building graphs.
- idtrack-reproducibility: the benchmarks that measure IDTrack's answers against Ensembl's own files and the naming authorities, their results, the known limitations with their measured sizes, and the comparison with other tools on the same lines.
Questions and problems: the issue tracker; how to contribute: Contributing. IDTrack is distributed under the BSD 3-Clause license (LICENSE).
