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.1

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.1
File Size Uploaded Provenance Actions
pd2af-0.1.1.tar.gz 2.9 MB With provenance Details for pd2af-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 3.0 MB

Release files / pd2af-0.1.1.tar.gz

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

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 Nov 23, 2026.

Transparency log

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

Download URL pd2af-0.1.1-py3-none-any.whl
Size 97.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9345073ffb501a0d5cbcd4f66a7bd974deccec37781c531e0e0fb053fed84e9
BLAKE2b-256 checksum
How to use checksums
6e12ce46a6e33f75f0bfeaac891185c998005ce46991258d452fda363d5e3fae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Security for pd2af 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pd2af-0.1.1.tar.gz

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 Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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