IMP  2.3.0
The Integrative Modeling Platform
load_protein_restrain_bonds.py
1 ## \example atom/load_protein_restrain_bonds.py
2 # Load a protein from a PDB file and then restrain all the bonds to have their
3 # current length.
4 #
5 
6 import IMP.atom
7 import IMP.container
9 prot = IMP.atom.read_pdb(IMP.atom.get_example_path("example_protein.pdb"), m)
13 h = IMP.core.Harmonic(0, 1)
16 m.add_restraint(br)
17 print m.evaluate(False)
Applies a SingletonScore to each Singleton in a list.
Various classes to hold sets of particles.
Bonds get_internal_bonds(Hierarchy mhd)
Get the bonds internal to this tree.
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
Store a kernel::ParticleIndexes.
Score the bond based on a UnaryFunction,.
Functionality for loading, creating, manipulating and scoring atomic structures.
void read_pdb(base::TextInput input, int model, Hierarchy h)
void add_bonds(Hierarchy d, const ForceFieldParameters *ffp=get_all_atom_CHARMM_parameters())
Class for storing model, its restraints, constraints, and particles.
Definition: kernel/Model.h:73
Harmonic function (symmetric about the mean)
Definition: core/Harmonic.h:24