||
ParmEd is a package designed to facilitate creating and easily manipulatingmolecular systems that are fully described by a common classical force field.Supported force fields include Amber, CHARMM, AMOEBA, and several others thatshare a similar functional form (e.g., GROMOS).
ParmEd is capable of reading and writing to a wide array of different fileformats, like the Amber topology and coordinate files, CHARMM PSF, parameter,topology, and coordinate files, Tinker parameter, topology, and coordinatefiles, and many others. The expressive central data structure (the Structure
class) makes it easy to quickly and safely manipulate a chemical system, itsunderlying topology, and force field parameters describing its potential energyfunction.
There are two parts of ParmEd---a documented API that you can incorporate intoyour own Python scripts and programs, and a GUI/CLI pair of programs thatprovide a means to quickly perform various modifications to chemical systems forrapid prototyping.
The API also provides bindings to the OpenMMlibrary, permitting you to carry out full molecular dynamics investigationsusing ParmEd on high-performant hardware, like AMD and NVidia GPUs.
To install ParmEd, either clone this git repository or download the latestrelease and unpack the resultingtarball. This should create a new ParmEd source code directory. Change to thatdirectory and build ParmEd with the command
python setup.py install
Note, if you are using the system Python, you may need to either run the abovecommand as root (e.g., by using sudo
) or add the --user
flag to installit to your home directory. I would suggest the latter choice.
AMBER user can overwrite installed version by
python setup.py install --prefix=$AMBERHOME
import parmed as pmd
# convert GROMACS topology to AMBER format
gmx_top = pmd.load_file('pmaawaterFE20mer2.top', xyz='pmaawaterFE20mer2.gro')
gmx_top.save('pmaa.top', format='amber')
gmx_top.save('pmaa.crd', format='rst7')
# convert AMBER topology to GROMACS, CHARMM formats
amber = pmd.load_file('prmtop', 'inpcrd')
# Save a GROMACS topology and GRO file
amber.save('gromacs.top')
amber.save('gromacs.gro')
# Save a CHARMM PSF and crd file
amber.save('charmm.psf')
amber.save('charmm.crd')
# convert mol2 to pdb file
mol2_parm = pmd.load_file('my.mol2')
mol2_parm.save('my.pdb')
# and many more
More documents
http://parmed.github.io/ParmEd/html/readwrite.html
Download
https://github.com/ParmEd/ParmEd
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-4-26 01:18
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社