IMP logo
IMP Reference Guide  2.7.0
The Integrative Modeling Platform
ideal_helix.py
1 ## \example pmi/ideal_helix.py
2 """Short example demonstrating ideal helices in PMI
3 """
4 
5 import IMP
6 import RMF
7 import IMP.atom
8 import IMP.rmf
9 import IMP.pmi
10 import IMP.pmi.topology
11 import IMP.pmi.dof
12 import IMP.pmi.macros
13 import IMP.pmi.restraints
14 import sys
15 
16 IMP.setup_from_argv(sys.argv, "Demonstration of ideal helices")
17 
18 # Create System and State
19 mdl = IMP.Model()
21 st = s.create_state()
22 
23 # Create a molecule and add helix representation
24 # this makes a c-alpha chain in approximately the shape of a helix
25 mol = st.create_molecule("example_helix",sequence='A'*20,chain_id='A')
26 mol.add_representation(mol,
27  resolutions=[1,10],
28  ideal_helix=True)
29 hier = s.build()
30 
31 # write a single-frame RMF to view the helix
33 out.init_rmf("example_helix.rmf3",hierarchies=[hier])
34 out.write_rmf("example_helix.rmf3")
Set of python classes to create a multi-state, multi-resolution IMP hierarchy.
Strings setup_from_argv(const Strings &argv, std::string description, std::string positional_description, int num_positional)
Protocols for sampling structures and analyzing them.
Definition: macros.py:1
This class initializes the root node of the global IMP.atom.Hierarchy.
Class for storing model, its restraints, constraints, and particles.
Definition: Model.h:72
Classes to handle different kinds of restraints.
Class for easy writing of PDBs, RMFs, and stat files.
Definition: output.py:47
Create movers and setup constraints for PMI objects.
Python classes to represent, score, sample and analyze models.
Functionality for loading, creating, manipulating and scoring atomic structures.
Support for the RMF file format for storing hierarchical molecular data and markup.