Analysis › Regions › Summarize · version 1
Distributions of what was measured per region, one histogram per column.
The ROI manager works in three steps: ROIs (regions of interest, one around each copy of a structure) are found (Segment regions, or by hand), each ROI is measured by the per-region steps, plugins that run once per ROI (such as Localization Statistics), and the collection of results is analysed. The per-region steps leave a results table: one row per ROI, one column per number a step returned.
Histograms is the simplest analysis of that table. It draws, for each column, how the values are distributed over the ROIs. The table may as well be one of clusters: a block of a chain (plugins run one after another as one) over cluster_id – the clusters Find clusters found – leaves a row per cluster, and results from offers it as per cluster_id: .... ROIs and clusters are both regions: sets of localizations measured together. That is where a population shows itself: the typical number of localizations of a nuclear pore, how much it varies, and which ROIs are outliers – empty, doubled, on background – and deserve a look before they go into an average.
It needs results: measure the ROIs first (per-region steps in the Regions tab).
1. The results table. The rows are the current results of every included ROI (use ticked). An ROI whose result is out of date – the ROI was moved, a filter or a step's setting changed – is left out until it is measured again. An ROI where a step failed has no values for that step's columns, and no row at all if nothing else ran. Nothing is measured here: the histograms show what the table holds when the plugin is run, and are a snapshot.
A table of clusters goes out of date as a whole, since the clusters change together: when the table, its cluster_id or a layer's filter (the lowest and highest values of attributes a localization must lie between) is no longer what the clusters were measured on – three clusters relabelled as one, say – the plugin says the results are out of date instead of drawing clusters that are not there any more, and results from stops offering them. Run the block again. An attribute written from the results themselves (Regions to attribute, a block's write values) does not count as a change.
2. The columns. With columns empty, every column that holds a number in every row is drawn, except the ROI and file identifiers. Otherwise the columns named, in that order.
3. The histograms. Each column's values are split into bins equal bins from the smallest to the largest value, and the number of regions in each bin is drawn: a grid of panels, up to four across, each titled with the measure and its unit (radius_nm is radius (nm)).

The histograms drawn for about 140 simulated nuclear pores (Nup96, 60 % labelling) measured with Statistics, one panel per column. The number of localizations per pore varies several-fold, from the random labelling and blinking alone; precision and photons, which are averages over a pore, vary much less.
Which table. None of its own: it reads what the per-region steps measured in each region, and those measured the table each layer showed.
Which columns. A column is taken by default when the first row has it and every row holds an integer or a floating-point number there (a NaN counts as a number; True/False and text do not). roi_id and file_id are never drawn. The rows' columns are stored in alphabetical order, and the panels follow it. With Statistics the default columns are five: the three numbers and the two counts of finite values behind the means (mean_photons_n, mean_precision_nm_n), which equal n_localizations unless the table holds NaNs. Name the columns to leave those out.
Missing values. A value that is not finite (NaN, or a row without that column) is left out of its histogram, and the panel says how many regions have no value. A column no region has a value for is not drawn: the text names it instead.
Bins. The bins are equal intervals from the smallest to the largest finite value, as
numpy.histogram makes them; the largest value falls into the last bin.
Two steps with the same column. When two per-region steps return a column of the same name, the results table keeps both, prefixed with the step's label (label.column), and that is the name to give in columns.
| setting | default | what it does |
|---|---|---|
binsbins | 20 | Number of equal-width bins, spanning each column's smallest to largest value. Around the square root of the number of regions is a fair start: 10 for 100 ROIs, 30 for 1000. Too many leaves most bins with one region or none; too few hides a second population. at least 1 |
columnsfields | – | Comma separated; empty means every numeric column but the counts behind the means. Names as in the results table, for example |
results fromevaluation | auto | The measurement whose columns are drawn, on the ROIs or per region of an id attribute; auto: everything measured on the ROIs. auto for an overview of everything measured. The list offers every set of results on the ROIs, by the name of the step that made it; pick one to see only its columns, under their own names – one of two settings of the same plugin, say, when both are on the ROIs. |
roi_ids), and the number missing; and the rows themselves.A population of similar structures gives one peak per column. A second peak at twice the typical count suggests ROIs holding two structures; a tail at low counts, ROIs on background or on incompletely labelled structures.
SMAP has no plugin of this name; its results per site (SMAP's word for an ROI) are looked at in the ROI manager's evaluation window or taken out with ROIManager/Analyze/ExportEvaluationsTable, a table of one evaluator's results to plot elsewhere (Ries 2020). This plots the columns of all the per-region steps' results directly, and leaves out ROIs whose result is out of date.