ID translation, taxonomy, reference lists, orthologous genes, and more. Also available as a web service: https://utils.omnipathdb.org/
If you just want to translate IDs, resolve organisms, or access reference lists, install the lightweight client:
pip install omnipath-clientfrom omnipath_client.utils import map_name, translate_column
map_name('TP53', 'genesymbol', 'uniprot') # {'P04637'}The client queries the utils.omnipathdb.org web service -- no database setup required, same API as the local package.
Install omnipath-utils directly only if you need to run the service
locally or build the database yourself.
from omnipath_utils.mapping import map_name, map_names
from omnipath_utils.taxonomy import ensure_ncbi_tax_id
from omnipath_utils.reflists import is_swissprot
# Translate gene symbol to UniProt
map_name('TP53', 'genesymbol', 'uniprot')
# {'P04637', ...}
# Translate multiple
map_names(['TP53', 'EGFR'], 'genesymbol', 'uniprot')
# {'P04637', 'P00533', ...}
# Resolve organism
ensure_ncbi_tax_id('human') # 9606
ensure_ncbi_tax_id('hsapiens') # 9606
# Check if reviewed
is_swissprot('P04637') # Truepip install omnipath-utilsWith database and web service:
pip install "omnipath-utils[server]"omnipath-utils build --organisms 9606
omnipath-utils serve --port 8082curl "http://localhost:8082/mapping/translate?identifiers=TP53,EGFR&id_type=genesymbol&target_id_type=uniprot"https://saezlab.github.io/omnipath-utils
The package is under the GNU GPLv3 license. This doesn't affect the web service and data, where each original resource carries its own license, and is potentially available for commercial use.