3This script shows how to simulate a protein using a
4Membrane restraint. This example shows 3 ideal helices
5that have different segments inside the membrane
22 "Simulation of a protein using a membrane restraint")
32for i, len_helix
in enumerate([20, 40, 80]):
33 mol = st.create_molecule(
34 "helix_%s" % (str(i)), sequence=
"A" * len_helix, chain_id=
"A"
36 mol.add_representation(mol, resolutions=[1], ideal_helix=
True)
42 dof.create_rigid_body(mol,
55 cr.set_label(mol.get_name())
57 output_objects.append(cr)
64 included_objects=mols, resolution=1
68output_objects.append(evr1)
76 objects_inside=[
"helix_0", (1, 20,
"helix_1"), (20, 40,
"helix_2")],
77 objects_above=[(21, 40,
"helix_1"), (1, 19,
"helix_2")],
78 objects_below=[(41, 80,
"helix_2")],
83output_objects.append(mr)
86mr.create_membrane_density()
98print(dof.get_movers())
106 model, root_hier=hier, monte_carlo_sample_objects=dof.get_movers(),
107 replica_exchange_maximum_temperature=3.0,
108 global_output_directory=
"output/", output_objects=output_objects,
109 monte_carlo_steps=10, number_of_frames=frames,
110 number_of_best_scoring_models=0)
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.
Keeps all structures inside a sphere.
Restrain particles to be above, below, or inside a planar membrane.
Create a restraint between consecutive TempResidue objects or an entire PMI Molecule object.
A class to create an excluded volume restraint for a set of particles at a given resolution.
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.
Protocols for sampling structures and analyzing them.
Some miscellaneous simple restraints.
Restraints for keeping correct stereochemistry.
Classes to handle different kinds of restraints.
Set of Python classes to create a multi-state, multi-resolution IMP hierarchy.
Python classes to represent, score, sample and analyze models.
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.