IMP Manual
for IMP version 2.7.0

In this stage, we will initially define a representation of the system. Afterwards, we will convert the data into spatial restraints. This is performed using the script rnapolii/modeling/modeling.py
and uses the topology file, topology.txt
, to define the system components and their representation parameters.
Representation Very generally, the representation of a system is defined by all the variables that need to be determined based on input information, including the assignment of the system components to geometric objects (e.g. points, spheres, ellipsoids, and 3D Gaussian density functions).
Our RNA Pol II representation employs spherical beads of varying sizes and 3D Gaussians, which coarsen domains of the complex using several resolution scales simultaneously. The spatial restraints will be applied to individual resolution scales as appropriate.
Beads and Gaussians of a given domain are arranged into either a rigid body or a flexible string, based on the crystallographic structures. In a rigid body, all the beads and the Gaussians of a given domain have their relative distances constrained during configurational sampling, while in a flexible string the beads and the Gaussians are restrained by the sequence connectivity.
Multiscale representation of Rpb1 subunit of RNA Pol II
The GMM of a subunit is the set of all 3D Gaussians used to represent it; it will be used to calculate the EM score. The calculation of the GMM of a subunit can be done automatically in the topology file. For the purposes of this tutorial, we already created these for Rpb4 and Rpb7 and placed them in the rnapolii/data
directory in their respective .mrc
and .txt
files.
Dissecting the script The script rnapolii/modeling/modeling.py
sets up the representation of the system and the restraint. (Subsequently it also performs sampling, but more on that later.)
Header The first part of the script defines the files used in model building and restraint generation.
The first section defines where input files are located. The topology file defines how the system components are structurally represented. target_gmm_file
stores the EM map for the entire complex, which has already been converted into a Gaussian mixture model.
MC sampling parameters define the number of frames (model structures) which will be output during sampling. num_mc_steps
defines the number of Monte Carlo steps between output frames. This setup would therefore encompass 200000 MC steps in total.
The movers section defines movement parameters and hierarchies of movers. rb_max_trans
and bead_max_trans
set the maximum translation (in angstroms) allowed per MC step. rb_max_rot
is the maximum rotation for rigid bodies in radians.
rigid_bodies
is a Python list defining the components that will be moved as rigid bodies. Components must be identified by the domain name (as given in the topology file).
super_rigid_bodies
defines sets of rigid bodies and beads that will move together in an additional Monte Carlo move.
chain_of_super_rigid_bodies
sets additional Monte Carlo movers along the connectivity chain of a subunit. It groups sequenceconnected rigid domains and/or beads into overlapping pairs and triplets. Each of these groups will be moved rigidly. This mover helps to sample more efficiently complex topologies, made of several rigid bodies, connected by flexible linkers.
Build the Model Representation The next bit of code takes the input files and creates an IMP hierarchy based on the given topology, rigid body lists and data files:
The representation object returned holds a list of molecular hierarchies that define the model, that are passed to subsequent functions.
This line randomizes the initial configuration to remove any bias from the initial starting configuration read from input files. Since each subunit is composed of rigid bodies (i.e., beads constrained in a structure) and flexible beads, the configuration of the system is initialized by placing each rigid body and each randomly in a box with a side of 50 Angstroms, and far enough from each other to prevent any steric clashes. The rigid bodies are also randomly rotated.
Additional parameters and lists
Here, we set the maximum rotation and translation for rigid bodies and "floppy bodies" (which are our flexible strings of beads).
We would like to both sample, and output the information about the structural model. Therefore, they must be added to both the output and sample lists.
After defining the representation of the model, we build the restraints by which the individual structural models will be scored based on the input data.
Excluded Volume Restraint
The excluded volume restraint is calculated at resolution 20 (20 residues per bead).
Crosslinks
A crosslinking restraint is implemented as a distance restraint between two residues. The two residues are each defined by the protein (component) name and the residue number. The script here extracts the correct four columns that provide this information from the input data file.
An object xl1
for this crosslinking restraint is created and then added to the model.
length
: The maximum length of the crosslinkslope
: Slope of linear energy function added to sigmoidal restraintcolumnmapping
: Defining the structure of the input fileresolution
: The resolution at which the restraint is evaluated. 1 = residue levellabel
: A label for this set of cross links  helpful to identify them later in the stat fileAll flexible beads are initially optimized for 10 Monte Carlo steps, keeping the rigid body fixed in space.
EM Restraint
The GaussianEMRestraint uses a density overlap function to compare model to data. First the EM map is approximated with a Gaussian Mixture Model (done separately). Second, the components of the model are represented with Gaussians (forming the model GMM)
scale_to_target_mass
ensures the total mass of model and map are identicalslope
: nudge model closer to map when far awayweight
: heuristic, needed to calibrate the EM restraint with the other terms.and then add it to the output object. Nothing is being sampled, so it does not need to be added to sample objects.
Completion of these steps sets the energy function. The next step is Stage 3  Sampling.