IMP
2.1.1
The Integrative Modeling Platform
IMP Mainpage
All IMP Modules
Related Pages
Modules
Namespaces
Classes
Files
Examples
Indexes
File List
File Members
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
7
m =
IMP.kernel.Model
()
8
ds =
IMP.core.create_xyzr_particles
(m, 20, .1)
9
sc =
IMP.container.ListSingletonContainer
(ds)
10
cpc =
IMP.container.ConnectingPairContainer
(sc, .1)
11
m.evaluate(
False
)
12
pg =
IMP.core.EdgePairsGeometry
(cpc)
13
w =
IMP.display.ChimeraWriter
(
"pairs.py"
)
14
w.add_geometry(pg)
15
print
pg.get_name()
16
del w
IMP::display::ChimeraWriter
Write geometry to a python file for Chimera to read.
Definition:
ChimeraWriter.h:29
IMP::container
See IMP.container for more information.
Definition:
AllBipartitePairContainer.h:23
IMP::container::ListSingletonContainer
Store a ParticleIndexes.
Definition:
ListSingletonContainer.h:30
IMP::container::ConnectingPairContainer
A container which keeps a set of pairs that connect a set of spheres.
Definition:
ConnectingPairContainer.h:40
IMP::core::create_xyzr_particles
XYZRs create_xyzr_particles(kernel::Model *m, unsigned int num, Float radius, Float box_side=10)
Create a set of particles with random coordinates.
IMP::core::EdgePairsGeometry
Display a segment for each pair in a IMP::kernel::PairContainer.
Definition:
XYZR.h:179
IMP::display
See IMP.display for more information.
Definition:
BildWriter.h:20
IMP::kernel::Model
Class for storing model, its restraints, constraints, and particles.
Definition:
kernel/declare_Model.h:72