Skip to main content

OMMTK

Project description

RSSimTools

OpenMM Wrappers for General and Enhanced MDSimulations

This repo contains several simulation classes wrapped around openMM infrastructure that allow for rapid devlopment and usage of various MD Simulations.

Currently Supported are the following simulations: Minimization, Standard MD (base class); Heating and Equil MD simulations (NVT and NPT respectively), solvent scaled MD, random accelerated MD, and metadynamics MD.

Installation

Dependencies:

RSSimTools requires very few dependencies. Below is a list you can install with conda or pip:

python 3.6 or higher
simtk.openmm
numpy
mdtraj

To install the latest stable version we recommend using pip with the following command (this is the only method guaranteed to provide a stable version).

pip install rs-simtools

Alternatively you can download the source from this repo, navigate to the folder containing setup.py and install locally using

pip install ./

Documentation

Quickstart run

    # Load packages
    import parmed
    from simtk.openmm import unit
    from rs_simtools import MDSimulation, select_atoms
    
    # Note: Requires parameterized parmed in memory named parmed_structure!

    #instantiate sim from parmed alone, minimize (save h5 file) and run
    mdsim = MDSimulation(parmed_structure=parmed_structure)
    mdsim.minimize()
    minimized_parmed = mdsim.run(2 * unit.nanosecond)

    #build sim using a previous trajectory or h5 file
    mdsim = MDSimulation(parmed_structure=parmed_structure, coordinates=trajectory.h5)

    #build sim with positional restraints, run some equilibration and remove them for longer run
    protein_atoms = select_atoms(parmed_structure=parmed_structure, keyword_selection='protein')
    mdsim = MDSimulation(parmed_structure=parmed_structure, atoms_to_restrain=protein_atoms, restraint_weight=4)
    mdsim.run(1*unit.nanosecond)
    mdsim.update_restraint_weight(2)
    mdsim.run(1*unit.nanosecond)
    mdsim.remove_positional_restraints()
    end_parmed = mdsim.run(4 * unit.nanosecond)

Project details


Download files

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

Source Distribution

rs-simtools-0.0.4.tar.gz (20.0 kB view details)

Uploaded Source

File details

Details for the file rs-simtools-0.0.4.tar.gz.

File metadata

  • Download URL: rs-simtools-0.0.4.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for rs-simtools-0.0.4.tar.gz
Algorithm Hash digest
SHA256 44eaac435dc4a60943f6d94c8f3ba587e8dba235b3a7cff39e9feda83ba840c2
MD5 7e816e59f839fbac957f9c2455116a8b
BLAKE2b-256 dcaa518b0a4652973ca875567e7f638cb0ff44b28b828d723a33e2a774b49c31

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page