Coder Social home page Coder Social logo

toruniina / coffee-mill Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 821 KB

Molecular Dynamics Trajectory Analysis Tools

License: MIT License

C++ 97.42% CMake 1.39% Shell 1.19%
molecular-dynamics-analysis dcd trr pdb coarse-grained trajectory-analysis molecular-dynamics-simulation

coffee-mill's Introduction

Coffee mill

A command line tool for Mjolnir/CafeMol users.

Usage

mill has the following modes.

  • help mode
  • calc mode
  • traj mode
  • dcd mode
  • pdb mode
  • ninfo mode

And each mode has its own commands.

To see the usage and explanation of each command, run the following command.

$ mill help [mode] [command]
or
$ mill [mode] [command] help

E.g.

$ mill calc rmsd help
Info :   ___        __  __             __    __ _  _  _
Info :  / __| ___  / _|/ _| ___  ___   | \  / |(_)| || |
Info : | |   / _ \| |_| |_ / _ \/ _ \  |  \/  || || || |
Info : | |__| (_) |  _|  _|  __|  __/  | |\/| || || || |
Info :  \___|\___/|_| |_|  \___|\___|  |_|  |_||_||_||_|
Info :                    Copyright 2016-now Toru Niina)
Info : usage: mill calc rmsd [traj file] [ref file]
     : optinal args:
     :     --align=(true|false) [by default, true]
     :         If true (default), perform alignment by minimizing RMSD.
     :         otherwise, it calculates RMSD without minimization.
     :     --output=<filename>  [by default, "mill_rmsd.dat"]
     :         output data file.
     :     --only=<begin>:<end>
     :     --ref-only=<begin>:<end>
     :         use [begin, end) region only.

calc mode

All the .dcd, .pdb, .trr, and .xyz formats are supported in calc mode.

  • rmsd
    • calculates trajectory of RMSD between a snapshot and a reference structure.
  • dist
    • calculates distances of pairs of particles specified via the input file.
  • angle
    • calculates angles formed by a trio of particles or a pair of inter-particle vectors specified via the input file.
  • wham
    • performs WHAM from results of umbrella sampling.
  • aabb
    • calculates axis-aligned bounding box from a given particles.
    • Note: It does not condier the radius of particles.
  • obb
    • calculates oriented bounding box from a given particles based on the covariance.
    • Note: It does not condier the radius of particles.
  • autocorrelation
    • calculates autocorrelation of (single-column) data.
  • mean
    • calculates mean structure from a trajectory
  • pca
    • performs Principal Component Analysis and output the trajectory and conformational changes along the PCs.
    • Note: It is only available if you have already installed Eigen3.
    • Note: It is parallelized via OpenMP, so choose the number of threads you want to use via export OMP_NUM_THREADS=N.
  • help
    • prints help messages.

traj mode

All the .dcd, .pdb, .trr, and .xyz formats are supported in traj mode. You can use any of it, and even mix them in a single command.

  • convert
    • converts a trajectory file to a different format.
  • impose
    • align molecules onto the initial configuration by minimizing the RMSD.
  • join
    • concatenates several trajectory files into one file.
  • split
    • splits a DCD file for every N frames.
  • extract
    • extracts a portion of frames in a trajectory.
  • translate
    • moves molecules by a specified distance.
  • rotate
    • rotates molecules around x, y, or z axis by a specified angle.
  • running-average
    • takes running average of particle positions with a specified window size.
  • projection
    • takes a dot product between 3N-dimensional vector (an axis) and snapshot from a specified origin.
  • help
    • prints help message.

dcd mode

As the name suggests, dcd mode only supports .dcd format.

  • info
    • dumps header information of a dcd file.
  • help
    • prints help messages.

pdb mode

As the name suggests, pdb mode only supports .pdb format.

  • seq
    • prints sequence (one-letter amino acid code, or a DNA/RNA sequence) of the chains in a PDB file.
  • help
    • prints help messages.

ninfo mode

As the name suggests, ninfo mode only supports .ninfo format that is specific to CafeMol¹.

  • split
    • splits an all-in-one ninfo file into one-by-one files.
  • help
    • prints help messages.

Build

$ git clone https://github.com/ToruNiina/Coffee-mill.git --recursive
$ cd build
$ cmake ..
$ make

To find Eigen3, you can use cmake .. -DEigen3_DIR=/path/to/eigen-3.y.z/.

Reference

  1. "CafeMol: A coarse-grained biomolecular simulator for simulating proteins at work. H. Kenzaki, N. Koga, N. Hori, R. Kanada, W. Li, K. Okazaki, XQ. Yao, and S. Takada Journal of Chemical Theory and Computation (2011) 7(6) pp1979-1989 DOI:10.1021/ct2001045"

coffee-mill's People

Contributors

toruniina avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.