Skip to main content

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


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.1.tar.gz (2.4 MB view details)

Uploaded Source

Built Distribution

stonpy-0.2.1-py3-none-any.whl (2.4 MB view details)

Uploaded Python 3

File details

Details for the file stonpy-0.2.1.tar.gz.

File metadata

  • Download URL: stonpy-0.2.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.9

File hashes

Hashes for stonpy-0.2.1.tar.gz
Algorithm Hash digest
SHA256 41e3cdc5b296fab3f7789ed5f896ad86086dbd8c8ecc99e225fff02174ebc825
MD5 a6a59cb41c807f6c1b9a0ab87f3cbb7a
BLAKE2b-256 3cefb4e32fa6b02827d33a922dae1c3357cb0754ef7cae9e9d752710f247af14

See more details on using hashes here.

File details

Details for the file stonpy-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: stonpy-0.2.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.9

File hashes

Hashes for stonpy-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ceef57caf97dc983b943bec2a157e9a33b1cf15267307e564895145fb9e2edac
MD5 6799603e2d1efadaf67b5baba55a004c
BLAKE2b-256 05d9ce20bdfec54ef5a9110eadb481d77d3d187f713864e4054c37056a05ede6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page