|
1 | | - |
2 | | - |
3 | 1 | # omnipath-client |
4 | 2 |
|
5 | | -- [ ] TODO: Add badges to your project. |
6 | | - |
7 | | -[](https://github.com/saezlab/omnipath-client/actions/workflows/test.yml) |
| 3 | +[](https://github.com/saezlab/omnipath-client/actions/workflows/ci-testing-unit.yml) |
| 4 | +[](https://codecov.io/gh/saezlab/omnipath-client) |
8 | 5 | [](https://saezlab.github.io/omnipath-client/) |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | -## Description |
17 | | - |
18 | | -The new implementation for the OmniPath Python client |
| 6 | +[](https://pypi.org/project/omnipath-client/) |
| 7 | +[](https://pypi.org/project/omnipath-client/) |
| 8 | +[](https://github.com/saezlab/omnipath-client/blob/master/LICENSE) |
| 9 | + |
| 10 | +Python client for the [OmniPath](https://omnipathdb.org/) molecular biology |
| 11 | +prior-knowledge web API. |
| 12 | + |
| 13 | +## Features |
| 14 | + |
| 15 | +- Export **entities**, **interactions**, and **associations** (complexes, |
| 16 | + pathways, reactions) as DataFrames |
| 17 | +- **Ontology** term lookup, search, and hierarchy trees |
| 18 | +- Multi-backend output: [polars](https://pola.rs/) (default), |
| 19 | + [pandas](https://pandas.pydata.org/), or |
| 20 | + [pyarrow](https://arrow.apache.org/docs/python/) |
| 21 | +- Optional graph conversion to [annnet](https://github.com/saezlab/annnet) |
| 22 | + objects |
| 23 | +- Query validation against the API schema |
| 24 | +- Caching via [download-manager](https://github.com/saezlab/download-manager) |
19 | 25 |
|
20 | 26 | ## Installation |
21 | 27 |
|
22 | | -- [ ] TODO: Add installation instructions for your project, if applicable. |
23 | | - |
24 | 28 | ```bash |
25 | | -# Example |
26 | | -pip install <name-of-my-project> |
| 29 | +pip install omnipath-client |
27 | 30 | ``` |
28 | 31 |
|
29 | | -## Usage |
| 32 | +With polars (recommended default backend): |
| 33 | + |
| 34 | +```bash |
| 35 | +pip install omnipath-client polars |
| 36 | +``` |
30 | 37 |
|
31 | | -- [ ] TODO: Add usage instructions for your project. |
| 38 | +## Quick start |
32 | 39 |
|
33 | 40 | ```python |
34 | | -import foobar |
| 41 | +import omnipath_client as op |
35 | 42 |
|
36 | | -# returns 'words' |
37 | | -foobar.pluralize("word") |
| 43 | +# All interactions as a polars DataFrame |
| 44 | +df = op.interactions() |
38 | 45 |
|
39 | | -# returns 'geese' |
40 | | -foobar.pluralize("goose") |
| 46 | +# Directed interactions only |
| 47 | +df = op.interactions(direction='directed') |
41 | 48 |
|
42 | | -# returns 'phenomenon' |
43 | | -foobar.singularize("phenomena") |
| 49 | +# Human entities |
| 50 | +df = op.entities(taxonomy_ids=['9606']) |
| 51 | + |
| 52 | +# Interactions as an annnet graph |
| 53 | +g = op.interactions(as_graph=True) |
| 54 | + |
| 55 | +# Ontology term lookup |
| 56 | +result = op.ontology_terms(['GO:0006915', 'MI:0326']) |
| 57 | + |
| 58 | +# Choose a different backend |
| 59 | +df = op.entities(backend='pandas') |
44 | 60 | ``` |
45 | 61 |
|
46 | | -## Contributing |
| 62 | +For more examples, see the [quickstart guide](https://saezlab.github.io/omnipath-client/quickstart/). |
47 | 63 |
|
48 | | -Pull requests are welcome. For major changes, please open an issue first |
49 | | -to discuss what you would like to change. |
| 64 | +## Documentation |
50 | 65 |
|
51 | | -Please make sure to update tests as appropriate. |
| 66 | +Full documentation: [saezlab.github.io/omnipath-client](https://saezlab.github.io/omnipath-client/) |
52 | 67 |
|
53 | | -- [ ] TODO: add contribution guidelines. All of them can be modified in the mkdocs documentation (./docs/community) |
| 68 | +## Data licensing |
54 | 69 |
|
55 | | -## License |
| 70 | +The data served by OmniPath is combined from many original resources, each |
| 71 | +with their own license terms. The OmniPath client software is BSD-3-Clause, |
| 72 | +but the **data** is subject to the licenses of the original sources. Some |
| 73 | +resources restrict commercial use. Tools and documentation for managing |
| 74 | +license-based access control will be provided in a future release. |
56 | 75 |
|
57 | | -[MIT](https://choosealicense.com/licenses/mit/) |
| 76 | +## Citation |
| 77 | + |
| 78 | +If you use OmniPath in your research, please cite: |
| 79 | + |
| 80 | +> Türei D, Schaul J, Palacio-Escat N, *et al.* (2026) |
| 81 | +> OmniPath: integrated knowledgebase for multi-omics analysis. |
| 82 | +> *Nucleic Acids Research* 54(D1):D652-D660. |
| 83 | +> [doi:10.1093/nar/gkaf1126](https://doi.org/10.1093/nar/gkaf1126) |
| 84 | +
|
| 85 | +## License |
58 | 86 |
|
59 | | -- [ ] TODO: Modify this based on the license you choose. |
60 | | -- [ ] TODO: Modify the LICENSE file based on the license you choose. |
| 87 | +The client software is licensed under |
| 88 | +[BSD-3-Clause](https://github.com/saezlab/omnipath-client/blob/master/LICENSE). |
| 89 | +See [Data licensing](#data-licensing) above for information about the data. |
0 commit comments