Skip to main content

idtrack

PyPI downloads Python Version License Read the documentation at https://idtrack.readthedocs.io/ Build Package Status Tests status Codecov

idtrack logo

Cross-Temporal and Cross-Database Biological Identifier Mapping

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 idtrack
import 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

What it does

  • 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=True the 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 .h5ad datasets onto one release (pip install "idtrack[harmonize]").

Documentation

https://idtrack.readthedocs.io/: the Quickstart, how idtrack answers, its limitations, the command line, the tutorials and the reference. Setting up, building and checking graphs, testing and releasing: SETUP.md.

Metadata

Release files for idtrack 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for idtrack 0.1.2
File Size Uploaded Provenance Actions
idtrack-0.1.2.tar.gz 361.4 kB Without provenance Details for idtrack-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for idtrack 0.1.2
File Interpreter ABI Platform Actions
idtrack-0.1.2-py3-none-any.whl Python 3 none any Details for idtrack-0.1.2-py3-none-any.whl

Total release size: 749.3 kB

Release files / idtrack-0.1.2.tar.gz

Download URL idtrack-0.1.2.tar.gz
Size 361.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e10e0177320d79d2cdc6a9814c237ccc7c9c7c90e30e90d7a3bbbae0b105f5bf
BLAKE2b-256 checksum
How to use checksums
4dc130a8c7c6251887061966ecc022fd240f2b4b278c277dfba2ac8fc6e9b1ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / idtrack-0.1.2-py3-none-any.whl

Download URL idtrack-0.1.2-py3-none-any.whl
Size 387.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
155bbcac3b860156aaec8f9a9c8cab606e955879ef1d2da8e4fea5640861caec
BLAKE2b-256 checksum
How to use checksums
2c2169132c9b97ef960a91852126c1387bfed6c229408e9cf04b8a8ffe055f68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for idtrack 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page