Skip to main content

DOI

pKaRaptor logo

pKaRaptor

pKaRaptor is a Python toolkit for integrating protein pKa predictions with residue-level structural environments. It produces an interactive HTML dashboard in which protonation and tautomer assignments remain explicit user decisions.

Features

  • Integrates local PROPKA results with optional PyPka and DeepKa predictions.
  • Calculates residue-level structural and solvent-exposure descriptors.
  • Supports chain-aware membrane annotations from user-supplied OPM/PPM information.
  • Displays searchable residue data, titration curves, three-dimensional structure context, and two-dimensional interaction maps.
  • Exports explicit residue assignments as JSON.
  • Applies compatible assignments, adds hydrogens with OpenMM, and preserves detected disulfides.
  • Generates JSON and HTML preparation reports.

Installation

Python 3.10 or later is required.

pip install pkaraptor

For an editable source installation:

git clone https://github.com/jmargaridars/pkaraptor.git
cd pkaraptor
python -m pip install -e .

Confirm the installation with:

pkaraptor --version
pkaraptor --help

Run the analysis and create a structured project:

pkaraptor run protein.pdb --ph 7.0

The project contains separate input, analysis, dashboard, decisions, structures, and report directories.

External predictions and an oriented membrane structure can be supplied in the same command:

pkaraptor run protein.pdb \
  --ph 7.0 \
  --pypka-csv pypka.csv \
  --deepka-csv deepka.csv \
  --opm-pdb protein-ppm.pdb \
  --opm-id PPM3 \
  --opm-embedded "A:48-66,69,426,428-458" \
  --opm-embedded "B:48-66,69,426,428-458,461" \
  --no-open

--opm-embedded is repeatable. The original PDB is retained for final preparation, while the oriented PDB is used for environment analysis and dashboard visualization.

Open the generated dashboard, review the evidence, select histidine tautomers and any other intended overrides, and export the decisions JSON. Finalize the project with:

pkaraptor finalize decisions.json --project protein_pkaraptor

If a protein residue is covalently linked to a heterogen or glycan that is unsupported by the selected OpenMM force field, pKaRaptor stops with an explanatory error. A protein-only output can be requested explicitly:

pkaraptor finalize decisions.json \
  --project protein_pkaraptor \
  --remove-heterogens

This option removes heterogens, including glycans, ligands, and ions. Water is also removed unless --keep-water is supplied.

Assignment policy

  • pKaRaptor does not recommend or automatically infer residue assignments.
  • Unchosen non-histidine residues preserve their canonical input state.
  • Histidines require an explicit HID, HIE, or HIP selection.
  • Detected disulfide cysteines are preserved as CYX.
  • Explicit states that are incompatible with the selected hydrogenation route produce an error instead of being silently replaced.

The two-dimensional interaction map and the three-dimensional viewer present structural evidence. Changing a selected output state does not recalculate the input structure or its measured contacts.

Individual commands

The recommended interface is pkaraptor run followed by pkaraptor finalize. Individual tools remain available:

pkaraptor-analysis
pkaraptor-dashboard
pkaraptor-apply-json
pkaraptor-protonate
pkaraptor-run
pkaraptor-finalize

The original analysis interface is retained for compatibility:

pkaraptor --pdb protein.pdb --ph 7.0 --out residues.csv

Use --help with any command to inspect its options.

Outputs

Depending on the selected workflow, pKaRaptor can generate:

  • residue-level CSV analysis;
  • an interactive, self-contained HTML dashboard;
  • JSON residue decisions;
  • a hydrogenated PDB structure;
  • a histidine hydrogen report;
  • JSON and HTML preparation reports.

The preparation report summarizes assignments, estimated side-chain charge, and residue-mapping validation. Charge estimates exclude termini, ligands, ions, and cofactors.

Citation

Use the citation metadata in CITATION.cff. The concept DOI for all pKaRaptor versions is 10.5281/zenodo.20111134.

License

pKaRaptor is distributed under the BSD 3-Clause License.

Metadata

Release files for pkaraptor 0.2.3

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

Source distribution (sdist)

Source distribution for pkaraptor 0.2.3
File Size Uploaded
pkaraptor-0.2.3.tar.gz 58.2 kB Details

Built distribution (wheel)

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

Total release size: 119.1 kB

Release files / pkaraptor-0.2.3.tar.gz

Download URL pkaraptor-0.2.3.tar.gz
Size 58.2 kB
Tags Source
SHA-256 checksum
How to use checksums
46d74470820d74f1d0b7efcaaa942e47216f1f7f0355fbac00ebfb2045417ee9
BLAKE2b-256 checksum
How to use checksums
426d763e35fc59cc2356ebd2001f13f28a92c407150eeb8ccbb473d7460d3583
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.2

Release files / pkaraptor-0.2.3-py3-none-any.whl

Download URL pkaraptor-0.2.3-py3-none-any.whl
Size 60.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4493389a07105652c31438578ffbc47f01f163e4232d9576ea6958a7f6dc2fd0
BLAKE2b-256 checksum
How to use checksums
42a315c1bb462cde4faeebc212b5dd5bb834f80c1562e343a67971bd5a16e831
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

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