IMP
2.0.0
The Integrative Modeling Platform
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
IMP
IMP Documentation
Application Index
Argument Index
Class Examples
Modeling of GroEL with cnmultifit
Modeling of 3sfd with EMageFit
EMageFit protocol
EMageFit scripts and tools
Factory Index
Determination of a Nup133 structure with FoXS
Function Examples
Example design discussion
Developer Guide
Change History
Installation
Introduction
Mailing lists
Multithreaded evaluation using OpenMP
Integrative docking utility programs
Docking of PCSK9 with idock
Dependencies between objects
Module Index
Modeling of 3sfd with multifit
Deprecated List
Modules
Namespaces
Classes
Files
Examples
algebra/geometry.py
algebra/grid_space.py
atom/assess_dope.py
atom/brownian_statistics.py
atom/cg_pdb.py
atom/charmm_forcefield.py
atom/charmm_forcefield_verbose.py
atom/dope_and_excluded_volume.cpp
atom/load_protein_restrain_bonds.py
atom/markers.py
atom/molecular_hierarchy.py
atom/rigid_brownian_dynamics.py
atom/score_protein_with_ligand.py
atom/structure_from_sequence.py
base/log.py
container/bipartite_nonbonded_interactions.py
container/connectivity.py
container/filter_close_pairs.py
container/nonbonded_interactions.py
container/restrain_in_sphere.py
core/connectivity_restraint.py
core/cover_particles.py
core/custom_hierarchy.py
core/excluded_volume.py
core/incremental_mc.py
core/ms_connectivity_restraint.py
core/optimize_balls.py
core/pair_restraint.py
core/randomize_rigid_body.py
core/restrain_diameter.py
core/restrain_minimum_distance.py
core/rigid_bodies.py
core/rigid_collisions.py
core/symmetry.py
core/XYZ_Decorator.py
core/XYZR_Decorator.py
display/basic_geometry.py
display/display_log.py
display/displaying_ensembles.py
display/show_particles_as_spheres.py
domino/custom_filter.py
domino/domino_approach.py
domino/interactive.py
domino/interactive_with_containers.py
domino/marina_party.py
domino/merge_tree.py
domino/multiscale.py
domino/restraint_cache.py
domino/rigid_body_excluded_volume.py
domino/save_assignments.py
domino/six_particles_optimization.py
em/analyze_convergence.py
em/cube.py
em/fit_restraint.py
em/generate_density_map_of_fixed_dimension.py
em/local_fitting.py
em/pdb2density.py
em2d/clustering_of_pdb_models.py
em2d/collision_cross_section.py
em2d/em_images_conversion.py
em2d/optimize_em2d_with_montecarlo.py
example/range_restriction.py
gsl/simplex.py
kernel/basic_optimization.py
kernel/chain.py
kernel/dependency_graph.py
kernel/dock_with_crosslinks.py
kernel/graph.py
kernel/nup84.py
kernel/setup.py
kernel/write_a_restraint.py
kernel/write_an_optimizer_state.py
kmeans/kmeans_example.py
misc/decay.py
modeller/imp_restraints_in_modeller.py
modeller/load_modeller_model.py
modeller/modeller_restraints_in_imp.py
modules/rotamer/examples/rotamer_pdb.py
parallel/local_distance.py
parallel/tasks.py
restrainer/basic_display.py
restrainer/basic_setup.py
restrainer/em_restraint.py
restrainer/nup84_complex_in_bead_representation.py
restrainer/rigid_body_and_excluded_volume_restraint.py
restrainer/saxs_restraint.py
restrainer/simple_connectivity_on_molecules.py
restrainer/simple_connectivity_on_rigid_bodies.py
restrainer/simple_diameter.py
restrainer/simple_distance.py
restrainer/simple_em_fit.py
restrainer/simple_excluded_volume.py
rmf/geometry.py
rmf/link.py
rmf/multiresolution.py
rmf/pdb.py
rmf/simulation.py
rotamer/rotamer_pdb.py
saxs/profile.py
saxs/profile_fit.py
statistics/kmeans.py
statistics/write_a_metric.py
core/excluded_volume.py
Setup an excluded volume restraint between a bunch of particles with radius.
1
## \example core/excluded_volume.py
2
## Setup an excluded volume restraint between a bunch of particles with radius.
3
##
4
5
import
IMP.example
6
7
(m,c)=IMP.example.create_model_and_particles()
8
9
# this container lists all pairs that are close at the time of evaluation
10
nbl=
IMP.container.ClosePairContainer
(c, 0,2)
11
h=
IMP.core.HarmonicLowerBound
(0,1)
12
sd=
IMP.core.SphereDistancePairScore
(h)
13
# use the lower bound on the inter-sphere distance to push the spheres apart
14
nbr=
IMP.container.PairsRestraint
(sd, nbl)
15
m.add_restraint(nbr)
16
17
# alternatively, one could just do
18
r =
IMP.core.ExcludedVolumeRestraint
(c)
19
m.add_restraint(r)
20
21
# get the current score
22
print
m.evaluate(
False
)