Skip to main content

A library for working with molecular maps

Project description

momapy

MomaPy is a new Python library for working with molecular maps such as SBGN maps. Its key feature is its definition of a map, that is now formed of two entities: a model, that describes what concepts are represented, and a layout, that describes how these concepts are represented. This definition is borrowed from SBML and its layout/render extensions, that allow users to add a layout to an SBML model. MomaPy aims at extending this definition to all types of molecular maps, and in particular to SBGN maps.

MomaPy offers the following features:

  • support for SBGN PD and AF maps (read/write SBGN-ML with annotations, rendering information, and notes)
  • decomposition of a map object into:
    • a model object;
    • a layout object;
    • a mapping between the model and layout objects' subelements.
  • map, model, layout and mapping objects comparison; fast object in set checking
  • rendering of maps to images (SVG, PDF, JPEG, PNG, WebP) and other surfaces (e.g. GLFW window)
  • support for styling and css like stylesheets (including effects such as shadows)
  • automatic geometry and anchors (for arcs, shape borders)
  • local positioning (e.g. right of shape, fit set of shapes)
  • easy extension with new model and layout subelements

MomaPy is still in its initial development phase. As such, it is not yet released nor documented, and may change at any time.

However, the features of MomaPy are demonstrated in a jupyter notebook that can be found 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

momapy-0.1.0.tar.gz (911.0 kB view details)

Uploaded Source

Built Distribution

momapy-0.1.0-py3-none-any.whl (174.6 kB view details)

Uploaded Python 3

File details

Details for the file momapy-0.1.0.tar.gz.

File metadata

  • Download URL: momapy-0.1.0.tar.gz
  • Upload date:
  • Size: 911.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.17.3 CPython/3.12.4 Linux/6.10.5-arch1-1

File hashes

Hashes for momapy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e37db2efd634cfef82f9393e5f257eeb578d503606ed07391adf9d713aa5d6dc
MD5 b30e4a295e3f0cd633fe45feddcf0a65
BLAKE2b-256 944712fde99791e53421db70334644c18fddb3ee79740b546d8421d748d43cba

See more details on using hashes here.

File details

Details for the file momapy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: momapy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 174.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.17.3 CPython/3.12.4 Linux/6.10.5-arch1-1

File hashes

Hashes for momapy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8cf0adf1c972b6aba1f3f3257c2ec483bd852b0756f7bba0df8b592257ee5096
MD5 df9ca0e8d28ef69627e460289276aa61
BLAKE2b-256 c4d42e911a407dd560a15bcb8bc638b01afd5f31b2caed8c1206dc6b27f86bb4

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