The new implementation for the OmniPath Python client
Project description
omnipath-client
Python client for the OmniPath molecular biology prior-knowledge web API.
Features
- Export entities, interactions, and associations (complexes, pathways, reactions) as DataFrames
- Ontology term lookup, search, and hierarchy trees
- Multi-backend output: polars (default), pandas, or pyarrow
- Optional graph conversion to annnet objects
- Query validation against the API schema
- Caching via download-manager
Installation
pip install omnipath-client
With polars (recommended default backend):
pip install omnipath-client polars
Quick start
import omnipath_client as op
# All interactions as a polars DataFrame
df = op.interactions()
# Directed interactions only
df = op.interactions(direction='directed')
# Human entities
df = op.entities(taxonomy_ids=['9606'])
# Interactions as an annnet graph
g = op.interactions(as_graph=True)
# Ontology term lookup
result = op.ontology_terms(['GO:0006915', 'MI:0326'])
# Choose a different backend
df = op.entities(backend='pandas')
For more examples, see the quickstart guide.
OmniPath Utils
The client provides access to the OmniPath Utils service for ID translation, taxonomy, and orthology:
from omnipath_client.utils import (
map_name, # translate identifiers
translate_column, # translate DataFrame columns
ensure_ncbi_tax_id, # resolve organism names
orthology_translate, # cross-species translation
)
# Gene symbol to UniProt
map_name('TP53', 'genesymbol', 'uniprot') # {'P04637'}
# Organism resolution
ensure_ncbi_tax_id('mouse') # 10090
# Cross-species translation
orthology_translate(['TP53'], source=9606, target=10090)
# {'TP53': {'Trp53'}}
Full API: utils.omnipathdb.org
Documentation
Full documentation: saezlab.github.io/omnipath-client
Data licensing
The data served by OmniPath is combined from many original resources, each with their own license terms. The OmniPath client software is BSD-3-Clause, but the data is subject to the licenses of the original sources. Some resources restrict commercial use. Tools and documentation for managing license-based access control will be provided in a future release.
Citation
If you use OmniPath in your research, please cite:
Türei D, Schaul J, Palacio-Escat N, Bohár B, Bai Y, Ceccarelli F, Çevrim E, Daley M, Darcan M, Dimitrov D, Doğan T, Domingo-Fernández D, Dugourd A, Gábor A, Gul L, Hall BA, Hoyt CT, Ivanova O, Klein M, Lawrence T, Mañanes D, Módos D, Müller-Dott S, Ölbei M, Schmidt C, Şen B, Theis FJ, Ünlü A, Ulusoy E, Valdeolivas A, Korcsmáros T, Saez-Rodriguez J. (2026) OmniPath: integrated knowledgebase for multi-omics analysis. Nucleic Acids Research 54(D1):D652-D660. doi:10.1093/nar/gkaf1126
License
The client software is licensed under BSD-3-Clause. See Data licensing above for information about the data.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file omnipath_client-0.2.2.tar.gz.
File metadata
- Download URL: omnipath_client-0.2.2.tar.gz
- Upload date:
- Size: 247.3 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1288613b422a29c4ea49547fcaa57cac6caf079b6cc73fa2affb8252f8a46901
|
|
| MD5 |
9182a3525966fa9d3b0a89b71f2aab63
|
|
| BLAKE2b-256 |
9640fc7c34a3db9df40eb91f64803621f2c02f3af9e24037b2e58d0fef62d47c
|
File details
Details for the file omnipath_client-0.2.2-py3-none-any.whl.
File metadata
- Download URL: omnipath_client-0.2.2-py3-none-any.whl
- Upload date:
- Size: 25.4 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
914b1c008045e0b422a02bce7563b46e57f5b419603fb027d1ef12cf92d1bdbe
|
|
| MD5 |
e49face2df9b02a4753cbf2f92e996c5
|
|
| BLAKE2b-256 |
01d9139c76c7a83168482008c0c451ba40c1d879da2ca4792c0ebf116ebb1690
|