Giter VIP home page Giter VIP logo

fast_forward's Introduction

DOI

Fast-Forward

A simple and fast tool for forward mapping trajectories and computing interactions. Atomistic trajectories can be forward mapped from mapping files that correspond to backwards mapping style format. Interactions are computed from itp files automatically creating the time-series and distribution. Note that we use the numba library for paralell acceleration.

features

  • residue based mapping description
  • residues can be renamed
  • partial residues can be mapped
  • hydrogen of united-atom models can be reconstructed
  • interactions are computed from itp files
  • interactions can be computed for multiple molecules
  • interactions are grouped by comments

installation

git clone https://github.com/fgrunewald/fast_forward.git

cd fast-forward

pip install ./

mapping trajectories

The following is an examplatory command for mapping trajectories.

ff_map -f <.trr/.xtc/.gro/.pdb> -m <.mapping> -s <.tpr> -o <.xtc> -mols <molecule names>

Note that the molecule names need to correspond to the [moleculetype] entries in the itp files of the molecules that are to be mapped. Mapping files are written per resiude and follow the backwards style mapping file format.

[ molecule ]
<resnameAA> <resnameCG>
[ martini ]
<list of Martini beads>
[ atoms ]
     1     <atomname AA> <bead CG> <bead CG>

For example, the Martini3 mapping file for Alanine not including the hydrogens would look as follows and maps from the CHARMM force-field:

[ molecule ]
ALA ALA
[ martini ]
BB
[ atoms ]
    1     N    BB
    2    HN    BB
    3    CA    BB
    5    CB    BB
    9     C    BB
   10     O    BB

mapping trajectories + hydrogen reconstruction

The Martini3 model is based on center of geometry mappings, for which it is important to include the hydrogen atoms. However, certain atomistic united-atom models have no explicit hydrogen atoms. In oder to still obtain good bonded interactions fast_forward can reconstruct the hydrogen atoms using geometric rules. The only input required is a list of atom-types and weather they correspond to CH, CH2, CH3 or double bonded CH group (CHd).

The algorithm is directly taken from the buildH package. If you use this feauture please cite https://joss.theoj.org/papers/10.21105/joss.03521.

An example for POPC can be found in the example folder, where a CHARMM36m POPC was stripped of all hydrogen and mapped with reconstrucion.

Note the reconstruction only affects the mapping, atomistic coordinates with hydrogen are not written out.

computing interactions

Interactions can be computed from one or multiple itp files. The molecule name is simply matched to those found in the tpr and trajectory file and then the interactions are computed for all commented interactions. For example, from the following entry the first two bonds are put in a group and computed together and the last bond is skipped.

[ bonds ]
1 2 1 2000 ; group1
2 3 1 2000 ; group1
4 5 1 1000

The command looks as follows:

ff_inter -f <.trr/.xtc/.gro/.pdb> -i <.itp> -s <.tpr> -pref <prefix>

fast_forward's People

Contributors

fgrunewald avatar tsjerk avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.