Convert LAMMPS data files generated by LigParGen into molecule description and pair/bond/angle/dihedral/improper coeffs section for LAMMPS.
The utilities also "compress" atom, bond, angle and dihedral types, i.e. types with the
same mass,
The package is registered in a custom registry. To use another registry alongside the Julia General registry and install the package, enter the following commands:
julia> using Pkg
julia> pkg"registry add https://gitlab.com/pisarevvv/samma-registry.git"
julia> pkg"add LigParGen2LAMMPS"
julia> using LigParGen2LAMMPS
In the below examples, it is assumed that ligpargenfile is a LAMMPS data file generated
by LigParGen.
read_lpg_data(ligpargenfile[; keywords...])
Read the datafile produced by LigParGen from ligpargenfile. ligpargenfile may be an
I/O stream or a file name.
-
compress_types::Bool=true: mark particles with the same LJ parameters as the same type -
compress_btypes::Bool=true: mark bonds with the same parameters as the same type -
compress_atypes::Bool=true: mark angles with the same parameters as the same type -
compress_dtypes::Bool=true: mark dihedrals with the same parameters as the same type -
compress_itypes::Bool=true: mark impropers with the same parameters as the same type -
net_charge=nothing: if set to a number, the charges will be tweaked so that the total charge equals to the specified value. If set tonothing, the charges will be tweaked so that the net charge is the nearest integer valuewrite_mol(f, ligpargenfile::AbstractString)
Read the molecular topology from file named ligpargenfile and write it into f
in a format that can be read by LAMMPS molecule command. f can be an I/O stream
or a filename.
write_ff(f, ligpargenfile::AbstractString)
Read the molecular topology from file named ligpargenfile and write its forcefield
into f in a format compatible to LAMMPS input script. f can be an I/O stream
or a filename.
write_mol_and_ff(fmask::AbstractString, ligpargenfile::AbstractString)
Read the molecular topology and forcefield parameters from ligpargenfile and write them
into files "fmask.txt" and "fmask.ff", respectively.
- LigParGen website. http://zarbi.chem.yale.edu/ligpargen/
- Potential energy functions for atomic-level simulations of water and organic and biomolecular systems. Jorgensen, W. L.; Tirado-Rives, J. Proc. Nat. Acad. Sci. USA 2005, 102, 6665-6670
- 1.14*CM1A-LBCC: Localized Bond-Charge Corrected CM1A Charges for Condensed-Phase Simulations. Dodda, L. S.; Vilseck, J. Z.; Tirado-Rives, J.; Jorgensen, W. L. J. Phys. Chem. B, 2017, 121 (15), pp 3864-3870
- LigParGen web server: An automatic OPLS-AA parameter generator for organic ligands. Dodda, L. S.; Cabeza de Vaca, I.; Tirado-Rives, J.; Jorgensen, W. L. Nucleic Acids Research, Volume 45, Issue W1, 3 July 2017, Pages W331-W336