unleap

Get a ligand’s parameter files back out of a built Amber system.

tleap takes a ligand’s mol2 / frcmod / lib and builds a system (parm7 + rst7). unleap goes the other way. Give it a complex or solvated system and it strips the ligand out, regenerates those files, and then proves they are right. It rebuilds the ligand with tleap and checks every parameter and a sander energy breakdown against the original topology.

unleap -p complex.parm7 -c complex.rst7 -o lig_out

or, from Python, unleap.extract_ligand("complex.parm7", "complex.rst7") (Python API).

Typical uses:

  • The original ligand inputs are gone, or you no longer trust they match what was simulated.

  • You want the exact parameters used in a production run (RBFE/ABFE/VCM job) to reuse elsewhere.

  • You want to check that a run’s topology really used the ligand files you think it did.