Skip to main content

unleap

tests docs PyPI

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.

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

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

Source distribution (sdist)

Source distribution for unleap 0.1.0
File Size Uploaded Provenance Actions
unleap-0.1.0.tar.gz 34.2 kB With provenance Details for unleap-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 54.2 kB

Release files / unleap-0.1.0.tar.gz

Download URL unleap-0.1.0.tar.gz
Size 34.2 kB
Tags Source
SHA-256 checksum
How to use checksums
af810fdecb702394494bfe3af3b7c80b40fffd2805742fbf2cf712eb10eb30f1
BLAKE2b-256 checksum
How to use checksums
3a5af3cc6895bf25a42cd44d5853095add1661fc9993ab741909f70ffeec1e27
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 log

Release files / unleap-0.1.0-py3-none-any.whl

Download URL unleap-0.1.0-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9176aed06f6b1045cef74dd11cf95633052b53d3fa45c086eb6e42a9ebe4cd25
BLAKE2b-256 checksum
How to use checksums
af310d1d31b4b44dfc1d98d29635ffcd3c1edbf070366f8bb2791f81acf0be96
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 log

Security for unleap 0.1.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.

Select from 2 files

Attestation for unleap-0.1.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 log

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