unleap
Get a ligand's parameter files back out of a built Amber system.
tleap turns a ligand's mol2 / frcmod / lib into a system (parm7 + rst7); unleap goes
the other way. It strips the ligand out of a complex or solvated system and regenerates its
frcmod (a diff against GAFF/GAFF2, plus a self-contained copy), OFF lib, mol2, and an sdf
for RDKit. It then rebuilds the ligand with tleap to prove the files reproduce the original
parameters and energies.
Install
unleap needs AmberTools (tleap, sander), which is not pip-installable. The simplest setup:
conda create -n unleap -c conda-forge ambertools rdkit
conda activate unleap
pip install unleap
Use
unleap -p complex.parm7 -c complex.rst7 -o lig_out # ligand auto-detected
unleap -p unisc.parm7 -c 0.00000000_ti.rst7 --resname L00 -o L00_out # RBFE dual topology
unleap -p complex.parm7 -c traj.nc --frame -1 -o lig_out # from a trajectory
Hydrogen mass repartitioning is detected and undone. The output directory gets LIG.frcmod,
LIG.full.frcmod, LIG.lib, LIG.mol2, LIG.sdf, a tleap.in that loads them, and a
report.txt with the PASS/FAIL validation results.
From Python, the same run returns the files as strings, plus structured check results:
import unleap
res = unleap.extract_ligand("complex.parm7", "complex.rst7", resname="LIG")
res.ok, res.base.name, res.frcmod, res.lib, res.mol2 # PASS/FAIL, base FF, file contents
res.write("lig_out") # optional: write them like the CLI
Documentation
https://piskuliche.github.io/unleap/: the user guide, developer guide and API reference.
To build it locally: pip install -e ".[docs]" && make -C docs html.
Development
git clone https://github.com/piskuliche/unleap.git && cd unleap
pip install -e ".[test,docs]"
python -m pytest -q # needs AmberTools on PATH; skipped otherwise
License
MIT
Metadata
Release files for unleap 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| unleap-0.2.0.tar.gz | 40.7 kB | With provenance | Details for unleap-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unleap-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for unleap-0.2.0-py3-none-any.whl |
Total release size: 64.5 kB
Release files / unleap-0.2.0.tar.gz
| Download URL | unleap-0.2.0.tar.gz |
|---|---|
| Size | 40.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7203a4a6e008c69105aa4b5341bdb725d643b8c61c8eee942b83742cf28f03cb
|
|
BLAKE2b-256 checksum How to use checksums |
9a5c7190744ae84c8e2e9c13512f845997651b00530645f9d26ab08b5e2dda61
|
| 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 2, 2026.
Transparency logRelease files / unleap-0.2.0-py3-none-any.whl
| Download URL | unleap-0.2.0-py3-none-any.whl |
|---|---|
| Size | 23.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f693ca4fc37d3142cc725890becb6df1f775ecb686a2f622959ff9636480e064
|
|
BLAKE2b-256 checksum How to use checksums |
15f1bedad9bafda0819294b371273c17d7e9e5d8fb2d34388cda6f8f215d84a1
|
| 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 2, 2026.
Transparency logSecurity for unleap 0.2.0
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.
Attestation for unleap-0.2.0.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 2, 2026.
Transparency logA 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.