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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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