Skip to main content

Fold specification parser for AlphaPulldown

Project description

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

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. For example:

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

This expands to two folding entries for the same AF3 JSON feature file, each restricted to residues 1-100.

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

alphapulldown_input_parser-0.4.0.tar.gz (9.5 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.4.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for alphapulldown_input_parser-0.4.0.tar.gz
Algorithm Hash digest
SHA256 fe86762c51deb97cfcf663f7b7afd1367d3afebd2cc8641c98146218a5587b23
MD5 c3d69f20b482471579a5ac556a5ae8ca
BLAKE2b-256 f63974837f5cf45736b461687e8a8e4b9973e951d91dae6150333a6eeca94c41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alphapulldown_input_parser-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a45fba9c58e6303f685dfd937e6a635160e7ba1fdeb6df5bc157a3a4d051b67
MD5 50b0d6421f2dc8b5164447a50d72db48
BLAKE2b-256 898f6b243e80300dae35c44aaf3373daf7297714ff49cd2c026f097b54641cae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page