SBGN to Neo4j database
Project description
stonpy
stonpy is a package that allows users to store SBGN maps into a Neo4j database, query the database, and convert query results back to valid SBGN maps.
Installation
stonpy can be installed using pip
:
pip install stonpy
Quickstart
from stonpy.core import STON
ston = STON("URI", "USER", "PASSWORD")
ston.create_map(sbgn_map="my_sbgn_file.sbgn", map_id="my_map_id")
my_query = """
MATCH (m:Map {id: 'my_map_id'})-[r:HAS_GLYPH]->(p:StoichiometricProcess)
RETURN p
"""
sbgn_files = ston.query_to_sbgn_file(
query=my_query,
sbgn_file="my_query_result.sbgn",
complete=True,
merge_records=False
)
print(sbgn_files)
Documentation
A complete documentation is available here.
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
stonpy-0.2.0.tar.gz
(2.4 MB
view details)
Built Distribution
File details
Details for the file stonpy-0.2.0.tar.gz
.
File metadata
- Download URL: stonpy-0.2.0.tar.gz
- Upload date:
- Size: 2.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 370db8e09037ee2e4e5a3282445a0b3a426f8ebbb7cfbed7bb2d16f169e10463 |
|
MD5 | 33571bf174846110fd63594cd3e44d9c |
|
BLAKE2b-256 | bc6dd0ff2b0aaa1ebc6fe555b1cfe18fc8f1e2d1f43ba9bae0e15f3acf72bffb |
File details
Details for the file stonpy-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: stonpy-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a454732673926680a931574d7acee33c9122877f95afd1fcabbeb959800e990b |
|
MD5 | ef5d518c8471963208c2bce07fe69578 |
|
BLAKE2b-256 | 837898c9cce9d36749d7fedef915bc1f751e10907df8a98474dc1dd6d7bc103f |