2"""This script shows how to create a system with multiple copies of the
4We also create some cross-links which take into account the ambiguity.
5The key to ambiguity is using the same molecule name for ambiguous copies.
6That way when you perform Selection it automatically finds all relevant
20import ihm.cross_linkers
38m1A = st1.create_molecule(
'ProtA', sequence, chain_id=
'A')
39m1A.add_representation(m1A, resolutions=[1])
44m1B = m1A.create_clone(chain_id=
'B')
45m1C = st1.create_molecule(
'ProtC', sequence, chain_id=
'C')
46m1C.add_representation(m1C, resolutions=[1])
49m2A = st2.create_molecule(
'ProtA', sequence, chain_id=
'A')
50m2A.add_representation(m2A, resolutions=[1])
51m2C = st2.create_molecule(
'ProtC', sequence, chain_id=
'C')
52m2C.add_representation(m2C, resolutions=[1])
62for mol
in (m1A, m1B, m1C, m2A, m2C):
63 dof.create_flexible_beads(mol, max_trans=0.1)
64 dof.create_super_rigid_body(mol)
73lines =
'''id,mol1,res1,mol2,res2,score
76tf = tempfile.NamedTemporaryFile(delete=
False, mode=
'w')
82kw.set_unique_id_key(
"id")
83kw.set_protein1_key(
"mol1")
84kw.set_protein2_key(
"mol2")
85kw.set_residue1_key(
"res1")
86kw.set_residue2_key(
"res2")
87kw.set_id_score_key(
"score")
89xldb.create_set_from_file(tf.name)
100 linker=ihm.cross_linkers.dss)
102output_objects.append(xlr)
104dof.get_nuisances_from_restraint(xlr)
108for mol
in (m1A, m1B, m1C, m2A, m2C):
111 output_objects.append(cr)
115 included_objects=(m1A, m1B, m1C))
117output_objects.append(evr1)
119 included_objects=(m2A, m2C))
121output_objects.append(evr2)
139 monte_carlo_sample_objects=dof.get_movers(),
140 global_output_directory=
'ambiguity_output/',
141 output_objects=output_objects,
142 monte_carlo_steps=10,
Class for storing model, its restraints, constraints, and particles.
A decorator for a particle with x,y,z coordinates.
Simplify creation of constraints and movers for an IMP Hierarchy.
This class is needed to convert the keywords from a generic database to the standard ones.
this class handles a cross-link dataset and do filtering operations, adding cross-links,...
A macro to help setup and run replica exchange.
Setup cross-link distance restraints from mass spectrometry data.
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.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Functionality for loading, creating, manipulating and scoring atomic structures.
void show_with_representations(Hierarchy h, std::ostream &out=std::cout)
Traverse through the tree and show atom info, including representations.
void transform(RigidBody a, const algebra::Transformation3D &tr)
Transform a rigid body.
GenericHierarchies get_leaves(Hierarchy mhd)
Get all the leaves of the bit of hierarchy.
Create movers and set up constraints for PMI objects.
Protocols for sampling structures and analyzing them.
Restraints for handling cross-linking data.
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.
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.