Skip to main content

alphapulldown-input-parser

Reusable parser for AlphaPulldown-style fold specifications. Install it with:

pip install "alphapulldown-input-parser>=0.4.0"

or, for local development:

pip install -e /path/to/alphapulldown-input-parser

The package exposes three helpers:

  • parse_fold(...) – mirrors the historical AlphaPulldown helper and performs feature existence checks.
  • expand_fold_specification(...) – expands a single fold string without raising if features are missing.
  • parse_fold_chains(spec, protein_delimiter="+") – pure-syntactic parse of a single spec into (chain_name, copies, regions) triples, with no filesystem access or feature lookup. Useful for resource sizing or input validation before features exist on disk.

The parser is dependency-free and works across AlphaPulldown, the Snakemake pipeline, or any other tooling that consumes the same fold syntax.

As of 0.4.0, AF3 JSON feature files support the same copy/range suffixes as classic AlphaPulldown feature pickles, including discontinuous regions and copy counts. For example:

parse_fold(
    [
        "P01258_af3_input.json:1-100",
        "P01258_af3_input.json:1-100:150-200",
        "P01258_af3_input.json:2:1-100:150-200+P01579_af3_input.json",
    ],
    features_directory=["/path/to/features"],
    protein_delimiter="+",
)

AlphaPulldown and AlphaPulldownSnakemake can then preserve those AF3 JSON regions during input preparation. For the AlphaFold 3 backend, discontinuous regions are expanded into separate cropped chains rather than one continuous polymer chain.

Metadata

Release files for alphapulldown-input-parser 0.5.2

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

Source distribution (sdist)

Source distribution for alphapulldown-input-parser 0.5.2
File Size Uploaded Provenance Actions
alphapulldown_input_parser-0.5.2.tar.gz 12.7 kB Without provenance Details for alphapulldown_input_parser-0.5.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for alphapulldown-input-parser 0.5.2
File Interpreter ABI Platform Actions
alphapulldown_input_parser-0.5.2-py3-none-any.whl Python 3 none any Details for alphapulldown_input_parser-0.5.2-py3-none-any.whl

Total release size: 21.8 kB

Release files / alphapulldown_input_parser-0.5.2.tar.gz

Download URL alphapulldown_input_parser-0.5.2.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7589adf9b82e8c66556a37abfef685a14007f489eefc6d25a2bce48e2bed1c82
BLAKE2b-256 checksum
How to use checksums
6f32d539b8a7bbabe0064d2146ab5f496e5fb0250b1a1153b87b3916fda0b49a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / alphapulldown_input_parser-0.5.2-py3-none-any.whl

Download URL alphapulldown_input_parser-0.5.2-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
965b70adf4ffc69fb33e26be9cc8dad8247e96d3620d00f5d86d79499b1296f7
BLAKE2b-256 checksum
How to use checksums
c6b34efe5824561c9cd9227294d0e730526481e40819d9039aea70f35ace5bd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Security for alphapulldown-input-parser 0.5.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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