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.

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

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.2.1
File Size Uploaded Provenance Actions
unleap-0.2.1.tar.gz 41.1 kB With provenance Details for unleap-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 65.0 kB

Release files / unleap-0.2.1.tar.gz

Download URL unleap-0.2.1.tar.gz
Size 41.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c54296c8dc10e92e5e40598bfc748c97bc65b252b28aba724a9b5a1df87a0c77
BLAKE2b-256 checksum
How to use checksums
dbea7a7baf819ab3a56e762afada7f23a11133357d609862b74a2bcb5d11d1ba
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.2.1-py3-none-any.whl

Download URL unleap-0.2.1-py3-none-any.whl
Size 23.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4194be6218b5c72317b893143b57dba7d4b69081f57c2bd7d03af9f08c207576
BLAKE2b-256 checksum
How to use checksums
d678272cca8bb4d2499e406e375eca7b982389d6f25d3abeba3f1d96edd56805
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.2.1

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