IMP  2.3.1
The Integrative Modeling Platform
connectivity.py
1 ## \example container/connectivity.py
2 # Shows how to use and visualize the IMP::misc::ConnectingPairContainer.
3 
4 import IMP.container
5 import IMP.display
6 
8 ds = IMP.core.create_xyzr_particles(m, 20, .1)
11 m.evaluate(False)
13 w = IMP.display.ChimeraWriter("pairs.py")
14 w.add_geometry(pg)
15 print pg.get_name()
16 del w
Write geometry to a Python file for Chimera to read.
Definition: ChimeraWriter.h:29
Various classes to hold sets of particles.
Store a kernel::ParticleIndexes.
A container which keeps a set of pairs that connect a set of spheres.
XYZRs create_xyzr_particles(kernel::Model *m, unsigned int num, Float radius, Float box_side=10)
Create a set of particles with random coordinates.
Display a segment for each pair in a IMP::kernel::PairContainer.
Definition: XYZR.h:168
Output IMP model data in various file formats.
Class for storing model, its restraints, constraints, and particles.
Definition: kernel/Model.h:73