IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP.pmi.analysis.GetModelDensity Class Reference

Compute mean density maps from structures. More...

Detailed Description

Compute mean density maps from structures.

Keeps a dictionary of density maps, keys are in the custom ranges. When you call add_subunits_density, it adds particle coordinates to the existing density maps.

Note
This class is only available in Python.

Definition at line 1153 of file pmi/analysis.py.

Public Member Functions

 __init__ (self, custom_ranges, representation=None, resolution=20.0, voxel=5.0)
 Constructor.
 add_subunits_density (self, hierarchy)
 Add a frame to the densities.
 get_density (self, name)
 Get the current density for some component name.

Constructor & Destructor Documentation

◆ __init__()

IMP.pmi.analysis.GetModelDensity.__init__ ( self,
custom_ranges,
representation = None,
resolution = 20.0,
voxel = 5.0 )

Constructor.

Parameters
custom_rangesRequired. It's a dictionary, keys are the density component names, values are selection tuples e.g. {'kin28':[['kin28',1,-1]], 'density_name_1' :[('ccl1')], 'density_name_2' :[(1,142,'tfb3d1'), (143,700,'tfb3d2')],
resolutionThe MRC resolution of the output map (in Angstrom unit)
voxelThe voxel size for the output map (lower is slower)

Definition at line 1164 of file pmi/analysis.py.

Member Function Documentation

◆ add_subunits_density()

IMP.pmi.analysis.GetModelDensity.add_subunits_density ( self,
hierarchy )

Add a frame to the densities.

Parameters
hierarchyThe hierarchy to add.

Definition at line 1186 of file pmi/analysis.py.

◆ get_density()

IMP.pmi.analysis.GetModelDensity.get_density ( self,
name )

Get the current density for some component name.

Definition at line 1250 of file pmi/analysis.py.


The documentation for this class was generated from the following file: