Skip to main content

Python Boilerplate contains all the boilerplate you need to create a Python package.

Project description


A tool based in Python to use Antechamber to generate topologies for chemical compounds and to interface with others python applications like CCPN or ARIA.

acpype is pronounced as “ace + pipe”

Topologies files to be generated so far: CNS/XPLOR, GROMACS, CHARMM and AMBER.

NB: Topologies generated by acpype/Antechamber are based on General Amber Force Field (GAFF) and should be used only with compatible forcefields like AMBER and its variant.

Several flavours of AMBER FF are ported already for GROMACS (see ffamber: as well as to XPLOR/CNS (see xplor-nih: and CHARMM.

This code is released under GNU General Public License V3.


It was inspired by:

  • (Eric Sorin, David Mobley and John Chodera) and depends on Antechamber and Openbabel
  • YASARA Autosmiles: (Elmar Krieger)
  • topolbuild (Bruce Ray)
  • xplo2d (G.J. Kleywegt)

For Antechamber, please cite: 1. Wang, J., Wang, W., Kollman P. A.; Case, D. A. “Automatic atom type and bond type perception in molecular mechanical calculations”. Journal of Molecular Graphics and Modelling , 25, 2006, 247260. 2. Wang, J., Wolf, R. M.; Caldwell, J. W.; Kollman, P. A.; Case, D. A. “Development and testing of a general AMBER force field”. Journal of Computational Chemistry, 25, 2004, 1157-1174.

If you use this code, I am glad if you cite:

SOUSA DA SILVA, A. W.; VRANKEN, W. F.; LAUE, E. D. ACPYPE - AnteChamber Python Parser Interface. Manuscript to be submitted.

Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate Department of Biochemistry, University of Cambridge. 80 Tennis Court Road, Cambridge CB2 1GA, UK. >><<

alanwilter _at_ gmail _dot_ com



To run acpype with its all functionalities, you need ANTECHAMBER from package [ AmberTools] and [ Open Babel] if your input files are of PDB format.

However, if one wants acpype just to emulate, one needs nothing at all but [ Python].

At the moment, acpype is only available for download via svn:

  • svn checkout acpype

Yet, if some reason you cannot use svn, one still can get acpype with:

  • wget

But be aware that one may run in extra troubles and I am not willing to support this way.

To Test

At folder acpype/test, type:

  • ../ -i FFF.pdb

It’ll create a folder called FFF.acpype, and inside it one may find topology files for GROMACS and CNS/XPLOR.

To get help and more information, type:

  • ../ -h

To Install

At folder acpype, type:

  • ln -s $PWD/ /usr/local/bin/acpype

And re-login or start another shell session.

To Verify with GMX

{{{ cd FFF.acpype/ grompp -c FFF_GMX.gro -p -f em.mdp -o em.tpr mdrun -v -deffnm em # And if you have VMD vmd em.gro em.trr

# For MD, do: grompp -c em.gro -p -f md.mdp -o md.tpr mdrun -v -deffnm md vmd md.gro md.trr

# with openmpi, for a dual core grompp -c FFF_GMX.gro -p -f em.mdp -o em.tpr om-mpirun -n 2 mdrun_mpi -v -deffnm em grompp -c em.gro -p -f md.mdp -o md.tpr om-mpirun -n 2 mdrun_mpi -v -deffnm md vmd md.gro md.trr }}}

To Emulate _[]_

For any given prmtop and inpcrd files (outputs from AMBER LEaP), type:

  • ` acpype -p FFF_AC.prmtop -x FFF_AC.inpcrd`

The output files FFF_GMX.gro and will be generated at the same folder of the input files.

To Verify with CNS/XPLOR

At folder FFF.acpype, type:

  • cns < FFF_CNS.inp

To Verify with NAMD

  • see [TutorialNAMD]


0.1.0 (2017-01-04)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for acpype, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size acpype-0.1.1-py2.py3-none-any.whl (1.2 MB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size acpype-0.1.1.tar.gz (1.1 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page