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.1.1.tar.gz
(2.4 MB
view details)
Built Distribution
File details
Details for the file stonpy-0.1.1.tar.gz
.
File metadata
- Download URL: stonpy-0.1.1.tar.gz
- Upload date:
- Size: 2.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be7f51c31d4502f6a9a8738198d516e0c5161ed8a7c31cc4ae55afa93d246ad8 |
|
MD5 | d312224246fccd934a766b4b96d97f54 |
|
BLAKE2b-256 | 5fd8ae9034456a7f5f8244ea1a15d39e920c3e920f6e3ac08a45c517366f618f |
File details
Details for the file stonpy-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: stonpy-0.1.1-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.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bee3c70e5796e761d23a24f8839da9601e4ac9e026e624aae398d167f150b74 |
|
MD5 | ccb34b6db8e03978c3e3885f1085111a |
|
BLAKE2b-256 | ae2b7ec4f3a61d7669a45f553be3192e855edb328168faee0789582877accb24 |