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.
User guide
Developer guide
- Architecture
- Amber and ParmEd behaviors
- 1. Structure slicing breaks AmberParm
- 2. ParmEd’s frcmod writer loses precision
- 3. leap’s DEGTORAD is 0.0174533
- 4. tleap may store an improper reversed
- 5. Wildcard and explicit impropers give different atom orders
- 6. from_structure keys impropers under every permutation
- 7. tleap requires MASS and NONBON together
- 8. Coordinate reading
- 9. The lib stores coordinates at about 1e-4 Å
- 10. RDKit can’t read GAFF-typed mol2
- Diff frcmod matching rules
- Testing
- Extending