Python interface to the ariadne multi-omic knowledge graph
Project description
ariadnePy
Python interface to the ariadne multi-omic knowledge graph.
ariadnePy brings the biological database integration and graph-theory tools of the R package ariadne to Python users. It downloads biological resources (Gene Ontology, KEGG, UniProt, BugSigDB, ChocoPhlAn, and more) from Zenodo and assembles them into a single NetworkX MultiDiGraph that can be queried, filtered, and visualised directly in Python.
Installation
pip install ariadnepy
To also read RDS files (required for MSigDB):
pip install "ariadnepy[rds]"
For development:
git clone https://github.com/Minotau-R/ariadnePy
cd ariadnePy
pip install -e ".[dev]"
Quick start
import ariadnepy
# Build the knowledge graph using default resource versions
# (downloads GML files from Zenodo on first run; cached locally afterwards)
g = ariadnepy.ariadne()
print(g)
# MultiDiGraph with N nodes and M edges
# List all available resource versions
df = ariadnepy.list_resource_versions()
print(df.head())
# Select specific versions
g = ariadnepy.ariadne(versions={"GO": "2026-01-23", "KEGG": "latest"})
Project structure
ariadnePy/
├── src/
│ └── ariadnepy/
│ ├── __init__.py # public API
│ ├── _core.py # ariadne() graph builder
│ ├── _cache.py # resource downloading & caching
│ ├── _utils.py # utility functions
│ └── _custom.py # custom resource support
├── tests/
│ ├── test_core.py
│ ├── test_cache.py
│ └── test_utils.py
├── pyproject.toml
└── README.md
Running tests
pytest
License
Project details
Release history Release notifications | RSS feed
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 ariadnepy-0.1.0.tar.gz.
File metadata
- Download URL: ariadnepy-0.1.0.tar.gz
- Upload date:
- Size: 47.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c245944dbcac25fb122bec34663ae1e9ad36d7ada334adcb4e2e715ce24a7f97
|
|
| MD5 |
5a3e8376a872a75eacb08cfa688d87a8
|
|
| BLAKE2b-256 |
c87ae35d3f9c83b44c3d642a3ea871b89d6873360b89b73be7a158743c005138
|
File details
Details for the file ariadnepy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ariadnepy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 44.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b3557d898380977d8ef2d2466c12d22a000881ca5a05651a53f3423d05bcdf7
|
|
| MD5 |
0585dc46c511f1bb7f5b05135475c223
|
|
| BLAKE2b-256 |
6567da0a452bfad6c0a79f4dc06fd268794ee69c9c82cae6c339c2a46a502381
|