Skip to main content

Tests

Utilities for molecular prior-knowledge processing

ID translation, taxonomy, reference lists, orthologous genes, and more. Also available as a web service: https://utils.omnipathdb.org/

For most users: use omnipath-client

If you just want to translate IDs, resolve organisms, or access reference lists, install the lightweight client:

pip install omnipath-client
from 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.

Quick Start

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')  # True

Installation

pip install omnipath-utils

With database and web service:

pip install "omnipath-utils[server]"

Web Service

omnipath-utils build --organisms 9606
omnipath-utils serve --port 8082
curl "http://localhost:8082/mapping/translate?identifiers=TP53,EGFR&id_type=genesymbol&target_id_type=uniprot"

Documentation

https://saezlab.github.io/omnipath-utils

License

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.

Release files for omnipath-utils 0.1.1

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

Source distribution (sdist)

Source distribution for omnipath-utils 0.1.1
File Size Uploaded
omnipath_utils-0.1.1.tar.gz 379.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for omnipath-utils 0.1.1
File Interpreter ABI Platform
omnipath_utils-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 472.2 kB

Release files / omnipath_utils-0.1.1.tar.gz

Download URL omnipath_utils-0.1.1.tar.gz
Size 379.9 kB
Tags Source
SHA-256 checksum
How to use checksums
dc9c4e2a2b8ba85b1e45e4a966b8bb7d66811ab7cd06895eab7abf8028532d52
BLAKE2b-256 checksum
How to use checksums
fcb6ab015559cf0dd121f3457b3f3b7ace365a947f418ec6c253a972181919f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / omnipath_utils-0.1.1-py3-none-any.whl

Download URL omnipath_utils-0.1.1-py3-none-any.whl
Size 92.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1a7e2e88195b33c35064d9c4a5c9e5ecbc08de2bdeda6533be061a211e7c487
BLAKE2b-256 checksum
How to use checksums
6a4208423240cd2a5c86a76ef6a66ffa732e0ff8d8225d8c79c495f98f5c67d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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