IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
plot_path_maps Namespace Reference

Detailed Description

Path search
===========
Here, PathMap is used to find paths to all other points
on a grid around an attachment site. Grid points (voxels)
that are occupied by the structure are obstacles in the
path search.

Variables

 axs
 BFF_TILE_PENALTY = path_map.get_tile_values(IMP.bff.PM_TILE_PENALTY, (0, 1))
float bounds = 0.0, 30
int end_idx_1 = 829
int end_idx_2 = 229
 extra_radius
 fig
 hier = IMP.atom.read_pdb(str(pdb_fn), m)
 labeled_p = IMP.core.XYZ(sel_particles[0])
 m = IMP.Model()
list no_paths = [i for i, p in enumerate(paths) if len(p) <= 1]
 path_1 = t[end_idx_1].backtrack_to_path()
 path_2 = t[end_idx_2].backtrack_to_path()
list path_length = [len(p) for p in paths]
 path_map = IMP.bff.PathMap(path_map_header)
 path_map_header = IMP.bff.PathMapHeader(**path_map_header_parameter)
dict path_map_header_parameter
 path_origin = labeled_p.get_coordinates()
list paths = [t[e].backtrack_to_path() for e in range(path_map.get_number_of_voxels())]
str pdb_fn = pathlib.Path(IMP.bff.get_example_path('structure')) / "T4L/3GUN.pdb"
 PM_TILE_COST = path_map.get_tile_values(IMP.bff.PM_TILE_COST, bounds)
 PM_TILE_COST_DENSITY = path_map.get_tile_values(IMP.bff.PM_TILE_COST_DENSITY, bounds)
list ps = [a.get_particle() for a in IMP.atom.get_leaves(hier)]
 sel = IMP.atom.Selection(hier)
 sel_particles = sel.get_selected_particles()
 sharex
 start_idx = path_map.get_voxel_by_location(path_origin)
 t = path_map.get_tiles()

Variable Documentation

◆ axs

plot_path_maps.axs

Definition at line 138 of file plot_path_maps.py.

◆ BFF_TILE_PENALTY

plot_path_maps.BFF_TILE_PENALTY = path_map.get_tile_values(IMP.bff.PM_TILE_PENALTY, (0, 1))

Definition at line 126 of file plot_path_maps.py.

◆ bounds

float plot_path_maps.bounds = 0.0, 30

Definition at line 125 of file plot_path_maps.py.

◆ end_idx_1

int plot_path_maps.end_idx_1 = 829

Definition at line 97 of file plot_path_maps.py.

◆ end_idx_2

int plot_path_maps.end_idx_2 = 229

Definition at line 101 of file plot_path_maps.py.

◆ extra_radius

plot_path_maps.extra_radius

Definition at line 75 of file plot_path_maps.py.

◆ fig

plot_path_maps.fig

Definition at line 138 of file plot_path_maps.py.

◆ hier

plot_path_maps.hier = IMP.atom.read_pdb(str(pdb_fn), m)

Definition at line 31 of file plot_path_maps.py.

◆ labeled_p

plot_path_maps.labeled_p = IMP.core.XYZ(sel_particles[0])

Definition at line 38 of file plot_path_maps.py.

◆ m

plot_path_maps.m = IMP.Model()

Definition at line 29 of file plot_path_maps.py.

◆ no_paths

list plot_path_maps.no_paths = [i for i, p in enumerate(paths) if len(p) <= 1]

Definition at line 114 of file plot_path_maps.py.

◆ path_1

plot_path_maps.path_1 = t[end_idx_1].backtrack_to_path()

Definition at line 98 of file plot_path_maps.py.

◆ path_2

plot_path_maps.path_2 = t[end_idx_2].backtrack_to_path()

Definition at line 102 of file plot_path_maps.py.

◆ path_length

list plot_path_maps.path_length = [len(p) for p in paths]

Definition at line 109 of file plot_path_maps.py.

◆ path_map

plot_path_maps.path_map = IMP.bff.PathMap(path_map_header)

Definition at line 63 of file plot_path_maps.py.

◆ path_map_header

plot_path_maps.path_map_header = IMP.bff.PathMapHeader(**path_map_header_parameter)

Definition at line 61 of file plot_path_maps.py.

◆ path_map_header_parameter

dict plot_path_maps.path_map_header_parameter

Definition at line 55 of file plot_path_maps.py.

◆ path_origin

plot_path_maps.path_origin = labeled_p.get_coordinates()

Definition at line 39 of file plot_path_maps.py.

◆ paths

list plot_path_maps.paths = [t[e].backtrack_to_path() for e in range(path_map.get_number_of_voxels())]

Definition at line 108 of file plot_path_maps.py.

◆ pdb_fn

str plot_path_maps.pdb_fn = pathlib.Path(IMP.bff.get_example_path('structure')) / "T4L/3GUN.pdb"

Definition at line 30 of file plot_path_maps.py.

◆ PM_TILE_COST

plot_path_maps.PM_TILE_COST = path_map.get_tile_values(IMP.bff.PM_TILE_COST, bounds)

Definition at line 127 of file plot_path_maps.py.

◆ PM_TILE_COST_DENSITY

plot_path_maps.PM_TILE_COST_DENSITY = path_map.get_tile_values(IMP.bff.PM_TILE_COST_DENSITY, bounds)

Definition at line 128 of file plot_path_maps.py.

◆ ps

list plot_path_maps.ps = [a.get_particle() for a in IMP.atom.get_leaves(hier)]

Definition at line 73 of file plot_path_maps.py.

◆ sel

plot_path_maps.sel = IMP.atom.Selection(hier)

Definition at line 33 of file plot_path_maps.py.

◆ sel_particles

plot_path_maps.sel_particles = sel.get_selected_particles()

Definition at line 37 of file plot_path_maps.py.

◆ sharex

plot_path_maps.sharex

Definition at line 138 of file plot_path_maps.py.

◆ start_idx

plot_path_maps.start_idx = path_map.get_voxel_by_location(path_origin)

Definition at line 91 of file plot_path_maps.py.

◆ t

plot_path_maps.t = path_map.get_tiles()

Definition at line 96 of file plot_path_maps.py.