Skip to main content

ID translation, taxonomy, orthology and reference lists for molecular biology

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

omnipath_utils-0.1.1.tar.gz (379.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

omnipath_utils-0.1.1-py3-none-any.whl (92.3 kB view details)

Uploaded Python 3

File details

Details for the file omnipath_utils-0.1.1.tar.gz.

File metadata

  • Download URL: omnipath_utils-0.1.1.tar.gz
  • Upload date:
  • Size: 379.9 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for omnipath_utils-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dc9c4e2a2b8ba85b1e45e4a966b8bb7d66811ab7cd06895eab7abf8028532d52
MD5 de18b08763fd58384d55ab571b41e98b
BLAKE2b-256 fcb6ab015559cf0dd121f3457b3f3b7ace365a947f418ec6c253a972181919f4

See more details on using hashes here.

File details

Details for the file omnipath_utils-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: omnipath_utils-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 92.3 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for omnipath_utils-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b1a7e2e88195b33c35064d9c4a5c9e5ecbc08de2bdeda6533be061a211e7c487
MD5 bc0442bf8b4422a0073f56ad72af4cfd
BLAKE2b-256 6a4208423240cd2a5c86a76ef6a66ffa732e0ff8d8225d8c79c495f98f5c67d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page