Skip to main content

The new implementation for the OmniPath Python client

Project description

omnipath-client

Tests Codecov Docs PyPI Python License

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.

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

omnipath_client-0.2.0.tar.gz (240.8 kB view details)

Uploaded Source

Built Distribution

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

omnipath_client-0.2.0-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file omnipath_client-0.2.0.tar.gz.

File metadata

  • Download URL: omnipath_client-0.2.0.tar.gz
  • Upload date:
  • Size: 240.8 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_client-0.2.0.tar.gz
Algorithm Hash digest
SHA256 df985babbe085c8386e68bc6f72d8f573a1cdefc924e65e66982ba2f82b20097
MD5 0506833c6bb116ee228bc2eed584bf1f
BLAKE2b-256 72cc334ab808a851a694417d1c9aaef442f0ecbc8392a8b88035053eb9fd8698

See more details on using hashes here.

File details

Details for the file omnipath_client-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: omnipath_client-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 25.0 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_client-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3cc9b86bfb4c5caf143ac690fe3b8a56a7038fc6e33a47ea9368906eefd8691
MD5 1ac32e89768061fada7e3b82e2108dcf
BLAKE2b-256 4d3f7205c4e6a0e99d1724ca2ac38173e92f929443d15074b50d9830d6a5bbf2

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