LIRASignificanceEstimator#

class pylira.LIRASignificanceEstimator(result_observed_im, result_replicates, labels_im)[source]#

Bases: object

Estimate the significance of emission from specified regions using the method described in Stein et al. (2015)

Parameters:
result_observed_im: `~LIRADeconvolverResult`

LIRA result for the observed image

result_replicates: list

LIRA result array for the baseline images

labels_im: `~numpy.ndarray`

Image with regions where each region is indicated with a unique integer

Methods Summary

estimate_p_values(data[, gamma])

plot_xi_dist(xi_obs, xi_repl, region_id[, ...])

Plot the posterior distributions of xi for a region

Methods Documentation

estimate_p_values(data, gamma=0.005)[source]#
plot_xi_dist(xi_obs, xi_repl, region_id, figsize=(8, 5))[source]#

Plot the posterior distributions of xi for a region

Parameters:
xi_obsndarray

Posterior distribution of xi for the observation

xi_replndarray

Posterior distribution of xi for all the replicates

region_idint

Integer representing the region

figsizetuple

Figure size