Skip to main content

momapy_kb

License A library to integrate SBGN and CellDesigner maps into graph databases and logic programs. This library relies on momapy for handling maps.

Features

  • Multiple Labelled Property Graph backends: save maps in a Neo4j, FalkorDB or FalkorDBLite (embedded) database
  • A Clingo/ASP backend: convert maps to logic programming facts
  • Collection management: organize maps into named collections
  • Layout element queries: query model elements and retrieve corresponding layout elements for rendering

Installation

pip install momapy-kb[neo4j]        # Neo4j support
pip install momapy-kb[falkordb]     # FalkorDB support
pip install momapy-kb[falkordblite] # FalkorDBLite (embedded) support
pip install momapy-kb[clingo]       # Clingo/ASP support
pip install momapy-kb[all]          # Everything

Quick example

import momapy_kb.lpg.session
import momapy_kb.lpg.backends.neo4j

backend = momapy_kb.lpg.backends.neo4j.Neo4jBackend(
    hostname="localhost",
    username="neo4j",
    password="password",
)

with momapy_kb.lpg.session.Session(backend) as session:
    # save a CellDesigner map to the Neo4j database
    session.save_from_file("model.xml", integration_mode="hash")

    # query model elements, return them as momapy objects
    results = session.execute_query_as_objects(
        "MATCH (n:Protein) RETURN n"
    )

    # query model elements, return corresponding layout elements
    layout_results = session.execute_query_as_layout_elements(
        "MATCH (n:Reaction) RETURN n"
    )

Documentation

Full documentation is available at https://adrienrougny.github.io/momapy_kb/.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

momapy_kb-0.4.1.tar.gz (283.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

momapy_kb-0.4.1-py3-none-any.whl (30.1 kB view details)

Uploaded Python 3

File details

Details for the file momapy_kb-0.4.1.tar.gz.

File metadata

  • Download URL: momapy_kb-0.4.1.tar.gz
  • Upload date:
  • Size: 283.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for momapy_kb-0.4.1.tar.gz
Algorithm Hash digest
SHA256 e6e5a8c2568c05f98a38774837729387807de737efc071e370972877885291a1
MD5 a65ebf26da896b1eb05b91686eeec73b
BLAKE2b-256 53ea9414f3a69b3c9af276d7fba3e63622c33ee9c79e998400a8eea2a968816a

See more details on using hashes here.

Provenance

The following attestation bundles were made for momapy_kb-0.4.1.tar.gz:

Publisher: release.yml on adrienrougny/momapy_kb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file momapy_kb-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: momapy_kb-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 30.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for momapy_kb-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 93ee3ba9ae8f5b568dae0277eb24c601f16d1be97aa5ddf666de420887b500fb
MD5 e6b56578bcecb0451477277f27b2d92d
BLAKE2b-256 49a52c0565e664dbdac833f6cc89b06766d2a9c66384b2c31537946793a64712

See more details on using hashes here.

Provenance

The following attestation bundles were made for momapy_kb-0.4.1-py3-none-any.whl:

Publisher: release.yml on adrienrougny/momapy_kb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.5.0

2 files

This release

0.4.1 This release

2 files

0.4.0

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page