2Accessible volume decorator
3===========================
4IMP particles can be decorated with accessible volume (AV)
5decorators to compute the sterically allowed volume of a
6label around its attachment site, i.e., the decorated IMP
9The AV decorator uses the Dijkstra's algorithm to compute
10all path from the attachment site to a set of grid points
11around the attachment site. The AV decorator uses the
12``IMP.bff.PathMap`` class for computing the AV. The occupied
13volume of leaves in a molecular hierarchy serve as obstacles
47sel.set_residue_index(residue_index)
48source = sel.get_selected_particles()[0]
50 "linker_length": 20.0,
51 "radii": (3.5, 0.0, 0.0),
53 "allowed_sphere_radius": 2.0,
54 "contact_volume_thickness": 0.0,
55 "contact_volume_trapped_fraction": -1,
56 "simulation_grid_resolution": 0.5
85 IMP.bff.PM_TILE_PENALTY,
87 IMP.bff.PM_TILE_DENSITY,
88 IMP.bff.PM_TILE_COST_DENSITY,
89 IMP.bff.PM_TILE_PATH_LENGTH,
90 IMP.bff.PM_TILE_PATH_LENGTH_DENSITY,
91 IMP.bff.PM_TILE_FEATURE,
92 IMP.bff.PM_TILE_ACCESSIBLE_DENSITY,
93 IMP.bff.PM_TILE_ACCESSIBLE_FEATURE
132sel.set_residue_index(residue_index)
133p = sel.get_selected_particles()[0]
144 IMP.bff.DYE_PAIR_DISTANCE_E,
145 IMP.bff.DYE_PAIR_DISTANCE_MEAN,
146 IMP.bff.DYE_PAIR_DISTANCE_MP,
147 IMP.bff.DYE_PAIR_EFFICIENCY,
148 IMP.bff.DYE_PAIR_DISTANCE_DISTRIBUTION,
149 IMP.bff.DYE_PAIR_XYZ_DISTANCE
156 forster_radius=forster_radius,
157 distance_type=IMP.bff.DYE_PAIR_EFFICIENCY,
163 IMP.bff.DYE_PAIR_DISTANCE_E,
166mean_inter_dye_distance =
IMP.bff.av_distance(av1, av2, distance_type=IMP.bff.DYE_PAIR_DISTANCE_MEAN)
167print(
"Mean FRET efficiency : {:.2f}".format(fret_efficiency))
168print(
"Distance FRET : {:.1f}".format(distance_fret))
169print(
"Mean inter-dye distance: {:.1f}".format(mean_inter_dye_distance))
170print(
"Distance mean position : {:.1f}".format(
IMP.bff.av_distance(av1, av2, IMP.bff.DYE_PAIR_DISTANCE_MP)))
174rda_start, rda_stop, n_bins = 0, 100, 128
176rda = np.linspace(rda_start, rda_stop, n_bins)
179print(
"See plot.png for the distance distribution between two AVs")
180plt.savefig(
'plot.png')
Class for storing model, its restraints, constraints, and particles.
Class to handle individual particles of a Model object.
Select hierarchy particles identified by the biological name.
A decorator for a particle with accessible volume (AV).
static void do_setup_particle(Model *m, ParticleIndex pi, ParticleIndex pi_source, double linker_length=20.0, const algebra::Vector3D radii=algebra::Vector3D(3.5, 0, 0), double linker_width=0.5, double allowed_sphere_radius=1.5, double contact_volume_thickness=0.0, double contact_volume_trapped_fraction=-1, double simulation_grid_resolution=1.5)
Sets up the attributes for a particle in a model for AV (Anisotropic Volume) calculations.
A decorator for a particle with x,y,z coordinates.
Functionality for loading, creating, manipulating and scoring atomic structures.
Hierarchy read_pdb(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the PDB file.
Bayesian Fluorescence Framework.
std::vector< double > av_distance_distribution(const AV &av1, const AV &av2, std::vector< double > axis, int n_samples=10000)
Compute the distance to another accessible volume.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
double av_distance(const AV &a, const AV &b, double forster_radius=52.0, int distance_type=DYE_PAIR_DISTANCE_MEAN, int n_samples=10000)
Computes the distance to another accessible volume.
Basic functionality that is expected to be used by a wide variety of IMP users.
Basic utilities for handling cryo-electron microscopy 3D density maps.