Skip to main content

pd2af

PyPI Python License Documentation

A library and CLI to transform process-description (PD) maps into activity-flow (AF) maps.

Features

  • CellDesigner and SBGN-PD input: a CellDesigner map gives a CellDesigner map, an SBGN-PD map gives an SBGN-AF map
  • Three transformation modes: normal, no-complex and keep-reactions, with the --keep-species and --drop-compartments options
  • Three layout modes: dot (Graphviz auto-layout), plain (reuse of the original positions) and overlay (the original layout, with the elements that have no match dimmed)
  • Annotations and notes carried over: from the input elements to the elements they produce

Installation

pd2af is available as a Python package and can be installed with pip as follows (Python >=3.12):

pip install pd2af

The dot layout mode requires Graphviz's dot binary on your PATH.

Quick example

import momapy.io
import pd2af

pd_map = momapy.io.read("my_map.xml").obj
af_map = pd2af.transform(
    pd_map,
    mode="no-complex",
    layout_mode="dot",
    keep_species=True,
    drop_compartments=True,
).obj
momapy.io.write(af_map, "my_map_af.xml", writer="celldesigner")
pd2af transform my_map.xml -m no-complex -l dot --keep-species --drop-compartments -o my_map_af.xml
pd2af list-modes

Documentation

The documentation for pd2af is available here.

Metadata

Release files for pd2af 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pd2af 0.1.0
File Size Uploaded
pd2af-0.1.0.tar.gz 2.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pd2af 0.1.0
File Interpreter ABI Platform
pd2af-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 3.0 MB

Release files / pd2af-0.1.0.tar.gz

Download URL pd2af-0.1.0.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
bb820ecef756f49256c8871574d6eaffbf5b8a1fc929513bfa87652bae06c3c7
BLAKE2b-256 checksum
How to use checksums
ee560f864dbebd4fb8dc999ff15e1890ef477064c223cae08b613995044ec7c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / pd2af-0.1.0-py3-none-any.whl

Download URL pd2af-0.1.0-py3-none-any.whl
Size 96.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39a9b82c71b06e1ad13d9e44023a55ff6670a3a9c0c666fd589e73f17728bff8
BLAKE2b-256 checksum
How to use checksums
5658c34816847f4cc2ea34a24b4bd33f3c4cba103a229439460f073cb57def04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release 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