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

Detailed Description

Orientation factor
==================
Compute the probability of distance distributions for an
experimental steady state donor and acceptor anisotropies.

Functions

 k2_call (**kwargs)
float mean_sd (axis, value)
 normal_dist (x, loc, scale)
 normal_dist_np (x, loc, scale_neg, scale_pos)
np.ndarray RDA_coupler (RDA_ax, Rapp_ax, Rapp_pdf, k2_ax, k2_pdf, scale=0.01)

Variables

 _
 alpha
float angle_step_size = 0.15
 ax = axs.flatten()[i]
 axs
 col
 color
 colors
dict distance_sets
 exp_mean = np.dot(RDA_pdf_wic_k2, RDA_ax) / np.sum(RDA_pdf_wic_k2)
 exp_mean2 = np.dot(RDA_pdf_wic_k2, RDA_ax**2) / np.sum(RDA_pdf_wic_k2)
dict exp_means = {}
 exp_sd = np.sqrt(exp_mean2 - exp_mean**2.0)
 expm = list()
 facecolor
 fig
str fname = ds + '.png'
 k2
 k2_ax = k2_axis[1:]
 k2_axis
dict k2_kw
 k2_max
 k2_mean_histogram
 k2_min
 k2_pdf_wic = k2_mean_histogram
 k2_sd
 k2_wic = k2_pdf_wic
 label
 left
 linestyles
int n_axis = 256
list name = names[i]
list names = ["155-680", "363-661", "366-502", "388-588", "406-523", "406-610", "425-519", "425-540", "457-592", "498-661", "550-659", "173-659", "155-571", "406-661", "425-646", "385-661", "406-618"]
int ncols = 3
int nrows = 6
tuple ovls = (r_max - r_min) / (2 * n_axis)
float r0 = 0.38
list r_ADinf = r_ADinfs[i]
list r_ADinfs = [0.01, 0.026, 0.041, 0.049, 0.012, 0.02, 0.105, 0.0561, 0.091, 0.112, 0.018, 0.007, 0.02, 0.019, 0.05, 0.05, 0.017]
list r_inf_AA = r_inf_AAs[i]
list r_inf_AAs = [0.165, 0.241, 0.214, 0.231, 0.221, 0.178, 0.169, 0.214, 0.206, 0.156, 0.177, 0.217, 0.212, 0.145, 0.209, 0.227, 0.186]
list r_inf_DD = r_inf_DDs[i]
list r_inf_DDs = [0.246, 0.298, 0.23, 0.231, 0.293, 0.279, 0.137, 0.137, 0.137, 0.237, 0.201, 0.192, 0.223, 0.193, 0.195, 0.195, 0.193]
int r_max = 120
int r_min = 10
 Rapp_ax = np.linspace(r_min, r_max, n_axis)
dict Rapp_m = Rapp_ms[i]
dict Rapp_m_ref = Rapp_m_refs[i]
dict Rapp_m_refs = distance_sets[ds]['RDA_ref']
dict Rapp_ms = distance_sets[ds]['Rapp_ms']
 Rapp_pdf = normal_dist_np(Rapp_ax, Rapp_m, *Rapp_sd)
dict Rapp_sd = Rapp_sds[i]
dict Rapp_sds = distance_sets[ds]['Rapp_sd']
 RDA_ax = np.linspace(r_min, r_max, n_axis)
np.ndarray RDA_pdf_wic_k2
dict ref_mean = Rapp_m_ref
 right
 row
 sharex
 sharey
 True
 x
float ymax = max(Rapp_pdf)*1.1
 ymin

Function Documentation

◆ k2_call()

k2_call ( ** kwargs)

Definition at line 75 of file plot_k2_uncertainty.py.

◆ mean_sd()

float mean_sd ( axis,
value )

Definition at line 41 of file plot_k2_uncertainty.py.

◆ normal_dist()

normal_dist ( x,
loc,
scale )

Definition at line 25 of file plot_k2_uncertainty.py.

◆ normal_dist_np()

normal_dist_np ( x,
loc,
scale_neg,
scale_pos )

Definition at line 31 of file plot_k2_uncertainty.py.

◆ RDA_coupler()

np.ndarray RDA_coupler ( RDA_ax,
Rapp_ax,
Rapp_pdf,
k2_ax,
k2_pdf,
scale = 0.01 )

Definition at line 51 of file plot_k2_uncertainty.py.

Variable Documentation

◆ _

plot_k2_uncertainty._
protected

Definition at line 168 of file plot_k2_uncertainty.py.

◆ alpha

plot_k2_uncertainty.alpha

Definition at line 197 of file plot_k2_uncertainty.py.

◆ angle_step_size

float plot_k2_uncertainty.angle_step_size = 0.15

Definition at line 128 of file plot_k2_uncertainty.py.

◆ ax

plot_k2_uncertainty.ax = axs.flatten()[i]

Definition at line 140 of file plot_k2_uncertainty.py.

◆ axs

plot_k2_uncertainty.axs

Definition at line 132 of file plot_k2_uncertainty.py.

◆ col

plot_k2_uncertainty.col

Definition at line 139 of file plot_k2_uncertainty.py.

◆ color

plot_k2_uncertainty.color

Definition at line 196 of file plot_k2_uncertainty.py.

◆ colors

plot_k2_uncertainty.colors

Definition at line 200 of file plot_k2_uncertainty.py.

◆ distance_sets

dict plot_k2_uncertainty.distance_sets

Definition at line 108 of file plot_k2_uncertainty.py.

◆ exp_mean

plot_k2_uncertainty.exp_mean = np.dot(RDA_pdf_wic_k2, RDA_ax) / np.sum(RDA_pdf_wic_k2)

Definition at line 188 of file plot_k2_uncertainty.py.

◆ exp_mean2

plot_k2_uncertainty.exp_mean2 = np.dot(RDA_pdf_wic_k2, RDA_ax**2) / np.sum(RDA_pdf_wic_k2)

Definition at line 190 of file plot_k2_uncertainty.py.

◆ exp_means

dict plot_k2_uncertainty.exp_means = {}

Definition at line 120 of file plot_k2_uncertainty.py.

◆ exp_sd

plot_k2_uncertainty.exp_sd = np.sqrt(exp_mean2 - exp_mean**2.0)

Definition at line 191 of file plot_k2_uncertainty.py.

◆ expm

plot_k2_uncertainty.expm = list()

Definition at line 133 of file plot_k2_uncertainty.py.

◆ facecolor

plot_k2_uncertainty.facecolor

Definition at line 197 of file plot_k2_uncertainty.py.

◆ fig

plot_k2_uncertainty.fig

Definition at line 132 of file plot_k2_uncertainty.py.

◆ fname

str plot_k2_uncertainty.fname = ds + '.png'

Definition at line 203 of file plot_k2_uncertainty.py.

◆ k2

plot_k2_uncertainty.k2

Definition at line 164 of file plot_k2_uncertainty.py.

◆ k2_ax

plot_k2_uncertainty.k2_ax = k2_axis[1:]

Definition at line 167 of file plot_k2_uncertainty.py.

◆ k2_axis

plot_k2_uncertainty.k2_axis

Definition at line 164 of file plot_k2_uncertainty.py.

◆ k2_kw

dict plot_k2_uncertainty.k2_kw

Definition at line 155 of file plot_k2_uncertainty.py.

◆ k2_max

plot_k2_uncertainty.k2_max

Definition at line 101 of file plot_k2_uncertainty.py.

◆ k2_mean_histogram

plot_k2_uncertainty.k2_mean_histogram

Definition at line 164 of file plot_k2_uncertainty.py.

◆ k2_min

plot_k2_uncertainty.k2_min

Definition at line 101 of file plot_k2_uncertainty.py.

◆ k2_pdf_wic

plot_k2_uncertainty.k2_pdf_wic = k2_mean_histogram

Definition at line 165 of file plot_k2_uncertainty.py.

◆ k2_sd

plot_k2_uncertainty.k2_sd

Definition at line 168 of file plot_k2_uncertainty.py.

◆ k2_wic

plot_k2_uncertainty.k2_wic = k2_pdf_wic

Definition at line 186 of file plot_k2_uncertainty.py.

◆ label

plot_k2_uncertainty.label

Definition at line 196 of file plot_k2_uncertainty.py.

◆ left

plot_k2_uncertainty.left

Definition at line 146 of file plot_k2_uncertainty.py.

◆ linestyles

plot_k2_uncertainty.linestyles

Definition at line 200 of file plot_k2_uncertainty.py.

◆ n_axis

int plot_k2_uncertainty.n_axis = 256

Definition at line 98 of file plot_k2_uncertainty.py.

◆ name

list plot_k2_uncertainty.name = names[i]

Definition at line 137 of file plot_k2_uncertainty.py.

◆ names

list plot_k2_uncertainty.names = ["155-680", "363-661", "366-502", "388-588", "406-523", "406-610", "425-519", "425-540", "457-592", "498-661", "550-659", "173-659", "155-571", "406-661", "425-646", "385-661", "406-618"]

Definition at line 103 of file plot_k2_uncertainty.py.

◆ ncols

plot_k2_uncertainty.ncols = 3

Definition at line 130 of file plot_k2_uncertainty.py.

◆ nrows

plot_k2_uncertainty.nrows = 6

Definition at line 131 of file plot_k2_uncertainty.py.

◆ ovls

tuple plot_k2_uncertainty.ovls = (r_max - r_min) / (2 * n_axis)

Definition at line 172 of file plot_k2_uncertainty.py.

◆ r0

float plot_k2_uncertainty.r0 = 0.38

Definition at line 129 of file plot_k2_uncertainty.py.

◆ r_ADinf

list plot_k2_uncertainty.r_ADinf = r_ADinfs[i]

Definition at line 150 of file plot_k2_uncertainty.py.

◆ r_ADinfs

list plot_k2_uncertainty.r_ADinfs = [0.01, 0.026, 0.041, 0.049, 0.012, 0.02, 0.105, 0.0561, 0.091, 0.112, 0.018, 0.007, 0.02, 0.019, 0.05, 0.05, 0.017]

Definition at line 106 of file plot_k2_uncertainty.py.

◆ r_inf_AA

list plot_k2_uncertainty.r_inf_AA = r_inf_AAs[i]

Definition at line 149 of file plot_k2_uncertainty.py.

◆ r_inf_AAs

list plot_k2_uncertainty.r_inf_AAs = [0.165, 0.241, 0.214, 0.231, 0.221, 0.178, 0.169, 0.214, 0.206, 0.156, 0.177, 0.217, 0.212, 0.145, 0.209, 0.227, 0.186]

Definition at line 105 of file plot_k2_uncertainty.py.

◆ r_inf_DD

list plot_k2_uncertainty.r_inf_DD = r_inf_DDs[i]

Definition at line 148 of file plot_k2_uncertainty.py.

◆ r_inf_DDs

list plot_k2_uncertainty.r_inf_DDs = [0.246, 0.298, 0.23, 0.231, 0.293, 0.279, 0.137, 0.137, 0.137, 0.237, 0.201, 0.192, 0.223, 0.193, 0.195, 0.195, 0.193]

Definition at line 104 of file plot_k2_uncertainty.py.

◆ r_max

int plot_k2_uncertainty.r_max = 120

Definition at line 100 of file plot_k2_uncertainty.py.

◆ r_min

int plot_k2_uncertainty.r_min = 10

Definition at line 99 of file plot_k2_uncertainty.py.

◆ Rapp_ax

plot_k2_uncertainty.Rapp_ax = np.linspace(r_min, r_max, n_axis)

Definition at line 174 of file plot_k2_uncertainty.py.

◆ Rapp_m

dict plot_k2_uncertainty.Rapp_m = Rapp_ms[i]

Definition at line 151 of file plot_k2_uncertainty.py.

◆ Rapp_m_ref

plot_k2_uncertainty.Rapp_m_ref = Rapp_m_refs[i]

Definition at line 152 of file plot_k2_uncertainty.py.

◆ Rapp_m_refs

dict plot_k2_uncertainty.Rapp_m_refs = distance_sets[ds]['RDA_ref']

Definition at line 125 of file plot_k2_uncertainty.py.

◆ Rapp_ms

dict plot_k2_uncertainty.Rapp_ms = distance_sets[ds]['Rapp_ms']

Definition at line 124 of file plot_k2_uncertainty.py.

◆ Rapp_pdf

plot_k2_uncertainty.Rapp_pdf = normal_dist_np(Rapp_ax, Rapp_m, *Rapp_sd)

Definition at line 176 of file plot_k2_uncertainty.py.

◆ Rapp_sd

dict plot_k2_uncertainty.Rapp_sd = Rapp_sds[i]

Definition at line 153 of file plot_k2_uncertainty.py.

◆ Rapp_sds

dict plot_k2_uncertainty.Rapp_sds = distance_sets[ds]['Rapp_sd']

Definition at line 126 of file plot_k2_uncertainty.py.

◆ RDA_ax

plot_k2_uncertainty.RDA_ax = np.linspace(r_min, r_max, n_axis)

Definition at line 175 of file plot_k2_uncertainty.py.

◆ RDA_pdf_wic_k2

plot_k2_uncertainty.RDA_pdf_wic_k2

Definition at line 179 of file plot_k2_uncertainty.py.

◆ ref_mean

dict plot_k2_uncertainty.ref_mean = Rapp_m_ref

Definition at line 189 of file plot_k2_uncertainty.py.

◆ right

plot_k2_uncertainty.right

Definition at line 146 of file plot_k2_uncertainty.py.

◆ row

plot_k2_uncertainty.row

Definition at line 139 of file plot_k2_uncertainty.py.

◆ sharex

plot_k2_uncertainty.sharex

Definition at line 132 of file plot_k2_uncertainty.py.

◆ sharey

plot_k2_uncertainty.sharey

Definition at line 132 of file plot_k2_uncertainty.py.

◆ True

plot_k2_uncertainty.True

Definition at line 132 of file plot_k2_uncertainty.py.

◆ x

plot_k2_uncertainty.x

Definition at line 200 of file plot_k2_uncertainty.py.

◆ ymax

plot_k2_uncertainty.ymax = max(Rapp_pdf)*1.1

Definition at line 195 of file plot_k2_uncertainty.py.

◆ ymin

plot_k2_uncertainty.ymin

Definition at line 200 of file plot_k2_uncertainty.py.