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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alphapulldown_input_parser-0.5.2.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alphapulldown_input_parser-0.5.2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file alphapulldown_input_parser-0.5.2.tar.gz.

File metadata

File hashes

Hashes for alphapulldown_input_parser-0.5.2.tar.gz
Algorithm Hash digest
SHA256 7589adf9b82e8c66556a37abfef685a14007f489eefc6d25a2bce48e2bed1c82
MD5 d245ca4e2b30a4adbc7d4f6f2fdf1f76
BLAKE2b-256 6f32d539b8a7bbabe0064d2146ab5f496e5fb0250b1a1153b87b3916fda0b49a

See more details on using hashes here.

File details

Details for the file alphapulldown_input_parser-0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for alphapulldown_input_parser-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 965b70adf4ffc69fb33e26be9cc8dad8247e96d3620d00f5d86d79499b1296f7
MD5 72f7c0692cd936bed759e5ed7239cafc
BLAKE2b-256 c6b34efe5824561c9cd9227294d0e730526481e40819d9039aea70f35ace5bd6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5.2 This release

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 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