This script shows how to simulate an atomic system with MD, with a secondary structure elastic network to speed things up.
"""This script shows how to simulate an atomic system with MD,
with a secondary structure elastic network to speed things up.
"""
import IMP
import sys
print("This example is too slow to test in debug mode - run without")
print("internal tests enabled")
sys.exit(0)
st1 = s.create_state()
gcp2 = st1.create_molecule("GCP2", sequence=seqs["GCP2_YEAST"], chain_id='A')
chain_id='A')
gcp2.add_representation(a1, resolutions=[0])
print('building molecule')
hier = s.build()
print('adding restraints')
charmm.add_to_model()
name_map={'A': 'GCP2'})
all_rs = []
for sse in sses['helix']+sses['beta']:
selection_tuples=sse,
strength=10.0,
dist_cutoff=5.0,
ca_only=True,
hierarchy=hier)
all_rs.append(er)
er.add_to_model()
md_ps = dof.setup_md(gcp2)
mdl,
root_hier=hier,
molecular_dynamics_sample_objects=md_ps,
molecular_dynamics_steps=5,
number_of_best_scoring_models=0,
number_of_frames=1,
global_output_directory='atomistic_output/')
rex.execute_macro()
Class for storing model, its restraints, constraints, and particles.
Simplify creation of constraints and movers for an IMP Hierarchy.
A macro to help setup and run replica exchange.
Enable CHARMM force field.
Add harmonic restraints between all pairs.
A dictionary-like wrapper for reading and storing sequence data.
Represent the root node of the global IMP.atom.Hierarchy.
Functionality for loading, creating, manipulating and scoring atomic structures.
Create movers and set up constraints for PMI objects.
parse_dssp(dssp_fn, limit_to_chains='', name_map=None)
Read a DSSP file, and return secondary structure elements (SSEs).
Protocols for sampling structures and analyzing them.
Restraints for keeping correct stereochemistry.
Set of Python classes to create a multi-state, multi-resolution IMP hierarchy.
Python classes to represent, score, sample and analyze models.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Support for the RMF file format for storing hierarchical molecular data and markup.
void setup_from_argv(int argc, char **argv, std::string description)
Parse the command line flags and return the positional arguments.
CheckLevel get_check_level()
Get the current audit mode.