Analysis › Measure · version 1 · can run once per region
The histogram of any column, per layer, with its mean, median,
Counts the values of any attribute – the axial position z_nm, the fit quality logl_rel, the PSF width sigma_nm, DECODE's detection probability prob, an attribute made with Math Parser – and draws them as a histogram, with the mean, median, standard deviation and mode. It is the quick look at an attribute before filtering on it: where most values lie, where the tail starts, whether there are two populations.
Localization Statistics does the same for photons, precision and on-time, and fits the law each of them follows; this plugin fits nothing and takes any attribute.
Each visible layer (one picture of the localizations with its own filter and colours) gets its own histogram, read as the layer shows it – its filter, the drawn ROI, and merged blinks if the layer merges them – so two channels, or one channel filtered two ways, are compared on the same bins.
It also runs once per region – in every ROI, or every cluster – giving the numbers of the attribute in each.
1. The range. All the layers' values together decide it: by default from the 0.1th to the 99.9th percentile, so that a handful of failed fits far away do not squeeze everything else into one bin.
2. The bins. A bin width you set is used. Otherwise an attribute of whole numbers (a frame, a count, an id) gets one bin per value, and any other attribute a width that suits the number of values: more values, narrower bins, between 20 and 200 of them.
3. The numbers. Per layer, of the values inside the range: how many, the mean, the median, the standard deviation and the mode (the peak, read between the bins: the dashed line).

The localization precision of a simulated table in two layers filtered at 200 and at 2000 photons, as fractions so the two sizes compare, with 1 % left off each end: the bright localizations sit at a smaller precision, with a shorter tail.
Range. With range on without the extremes, the range is , the quantiles of all the layers' finite values pooled,
the leave off fraction (0.001). Smallest to largest takes the minimum and maximum; from ... to ... takes what is typed, an empty end being the data's. A range of one value becomes one bin around it.
Bins. A whole-number attribute (an integer attribute, or floats that are all whole numbers) over a range of at most 500 values gets the edges , one bin per value. Otherwise the width is the Freedman-Diaconis rule (Freedman and Diaconis 1981),
, with IQR the interquartile range and
the number of values inside the range, and the number of bins is held between 20 and 200. A typed bin width that would make more than
bins is refused.
Numbers. Of the values inside the range; the text says how many fell outside. The standard deviation is the sample one (). The mode is the vertex of the parabola through the five bins around the tallest, kept within them (otherwise the tallest bin's centre), as SMAP finds it: finer than a bin for a smooth peak, and as noisy as the five bins it rests on.
Per region. The values are named after the attribute: <column>_n, _mean, _median, _std, _mode for the first layer and with _L2, _L3, ... for the others. A region with no values of the attribute gives <column>_n = 0 and nothing else.
| setting | default | what it does |
|---|---|---|
attributecolumn | - | The attribute whose values are counted. |
rangerange | without the extremes | What the bins cover; the numbers are of the values inside it. Without the extremes suits nearly every attribute. Use smallest to largest to see the outliers themselves, and from ... to ... to compare several runs on the same axis. Choices: without the extremes; smallest to largest; from ... to ... |
leave offquantile | 0.001 | The fraction of the values left off each end. 0 to 0.25 |
fromlo | auto | Empty: the smallest value. |
tohi | auto | Empty: the largest value. |
bin widthbin_width | auto | Auto: one per whole number, or Freedman-Diaconis. Leave it on auto. Set it to compare histograms of different files bin for bin, or when an attribute of whole numbers is wanted in coarser bins. |
yy | count | Fraction compares layers of different sizes by shape. Choices: count; fraction of the layer |
draw as (more)style | bars | Outlines read better for several layers. Choices: bars; outline |
log y (more)log_y | off | For a long tail. |
The figure, one histogram per layer (bars, or outlines with draw as; counts, or each layer's fraction with y), with each layer's mode dashed and its median in the legend. The text gives the range and the number of bins, and per layer the count, mean, median, standard deviation and mode, and how many values fell outside the range.
Based on SMAP's Analyze/measure/Histograms (Ries 2020). The main changes: