File: antechamber.rst

package info (click to toggle)
openstructure 2.11.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 206,240 kB
  • sloc: cpp: 188,571; python: 36,686; ansic: 34,298; fortran: 3,275; sh: 312; xml: 146; makefile: 29
file content (30 lines) | stat: -rw-r--r-- 1,075 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
:mod:`~ost.mol.mm.antechamber` -- Generating forcefields with Antechamber
--------------------------------------------------------------------------------

The antechamber submodule of mol.mm defines functions to use Antechamber (from
AmberTools) to automatically generate force field parameters and load the
results into :class:`~ost.mol.mm.Forcefield` objects.

**Example usage**:

.. code-block:: python

  from ost.mol import mm

  # create parameters for RVP using PDB's component dictionary
  mm.antechamber.RunAntechamber('RVP', 'components.cif', base_out_dir='ligands')

  # create force field
  ff = mm.Forcefield()
  ff = mm.antechamber.AddFromPath(ff, 'ligands/RVP')
  # equivalent: ff = mm.antechamber.AddFromFiles(ff, 'ligands/RVP/frcmod',
  #                                              'ligands/RVP/out.mpdb')
  # since Antechamber cannot deal with ions, you can do it manually
  ff = mm.antechamber.AddIon(ff, 'CL', 'CL', 35.45, -1.0, 0.4401, 0.4184)
  # save it
  ff.Save('ligands/ff.dat')

**Functions**:

.. automodule:: ost.mol.mm.antechamber
  :members: