tree: 85165e1dc6ec825b3be5363b9a22c1a07bed4453 [path history] [tgz]
  1. application/
  2. openmm_consumer.py
  3. openmm_log_consumer.py
  4. openmm_rmsd_consumer.py
  5. openmm_stream.slurm
  6. openmm_streamer.py
  7. README.md
  8. test.txt
gsoc2016/simstream/example/openmm_example/README.md

SimStream Example: Simulating Alanine Dipeptide

This example runs a simulation of the small molecule Alanine Dipeptide and streams logs and RMSD. RMSD is a metric for judging how similar two molecular states are for the same model.

Instructions

Installing OpenMM

The easiest way to install OpenMM is to use the Anaconda distribution of Python and run conda install -c https://conda.anaconda.org/omnia openmm

If you do not wish to use Anaconda, install OpenMM from source by following the instructions in the OpenMM docs

Start the Logfile Consumer

  1. Open a terminal
  2. cd path/to/simstream/examples/openmm_example
  3. python openmm_log_consumer.py

Start the RMSD Consumer

  1. Open a terminal
  2. cd path/to/simstream/examples/openmm_example
  3. python openmm_rmsd_consumer.py

Starting the Producer

  1. Open a new terminal
  2. cd path/to/simstream/examples/openmm_example
  3. python openmm_streamer.py application/sim.out application/trajectory.dcd application/input.pdb application/input.pdb

Starting the Simulation

  1. Open a new terminal
  2. cd path/to/simstream/examples/openmm_example/application
  3. python alanine_dipeptide.py > sim.out

The Logfile Consumer should now be printing tagged log entries to the screen; the RMSD Consumer should be printing the calculated RMSD each time the trajectory file is written.