Analysis › Regions › Workflow · version 1
Finds the nuclear pores of the file, counts their corners and localizations, and fits the labelling efficiency, in one run.
The labelling efficiency (also called degree of labelling: the fraction of the target proteins that carry a detected label) of nuclear pores takes three steps in the ROI manager: find the pores, count each one's corners and localizations, and fit the efficiency to all of them. This runs the three in one go, on the file the ROI manager is showing, and shows the results of all three in one window.
It is a chain (also called a pipeline or workflow) – the plugins it runs, one after the other, each with its own settings in a section of this panel – rather than a plugin of its own: Segment regions (its circle template, with the NPC preset's ring and keep), NPC Corners and NPC labelling efficiency. Their pages explain the methods; this one only what running them together changes. Because it is a chain, it can be edited (under build, and a right click on a step's title), saved under another name, and run over many files in a batch.
Use it for the standard analysis, and the three plugins separately to look at one step more closely – the ROIs (regions of interest) this one makes are ordinary ROIs, and can be walked through, judged and measured again in the ROI manager. It needs the localization precision (xy_err_nm, also called the CRLB).
1. Merge blinks. The layers step ticks merge blinks on the first layer, one localization per blink, as the model expects – merge blinks, also called grouping or linking, combines the localizations in consecutive frames that come from one blinking event into one; its filter stays as the Render tab has it.
2. Find the pores. The file's earlier NPC ROIs are removed (replace earlier pores is ticked in the find the pores section), and the pores are found with the settings of that section. ROIs drawn by hand, or made by another segmenter, are left alone.
3. Count. The each pore section is a block: its step, NPC Corners, runs once in every ROI the manager includes, with the settings of its NPC Corners section, before the next step starts: each pore's corners seen with the precise localizations, and its localizations. The numbers are stored with the ROIs, as the per-region steps of the ROI manager store them.
4. Fit. The labelling efficiency and the blinks per copy are fitted to all the counted ROIs with the settings of the labelling efficiency section.
The window shows the pores found, the segmenter's checks and the fit (the corner and localization histograms with the model).
A block in a chain. The steps of a block run once in each region – here every ROI the manager includes, every one that is ticked use, whoever made it – and the chain goes on only when all are done. A ROI on which a step fails (no localizations, say) loses its own entry and is counted in the block's line, not the run.
The per-region steps window is left alone. The counts are stored with the ROIs as results called NPC Corners, like any other, and the per-region steps window's list stays as it was set up – for this work or for another. A result belongs to its ROI, whoever ran it, so the results table shows the chain's counts beside the per-region steps' numbers, and NPC labelling efficiency run again from the Regions tab finds them, with the cutoffs they were counted with. Running the chain again replaces its counts; to keep a second set beside the first – other cutoffs, to compare – rename the NPC Corners step (a right click on its title). The chain's analysis reads the chain's own counts, whatever else is on the ROIs; run from the Regions tab afterwards, it asks which set of results to read when there are several.
Nothing changes until the end. The chain runs on a copy of the session, ROI manager included; the ROIs it found and the counts it made reach the ROI manager only when the whole chain has succeeded. A step that fails leaves the ROI manager as it was.
Re-running. With replace earlier pores off, the pores of an earlier run stay, a new run adds only what is new (a candidate near an existing ROI is suppressed), and all of them are counted. Results that are still current – the same ROI, data and settings – are carried forward rather than measured again.
SMAP has no single counterpart: its NPC analysis is run as segmentNPC, then NPCLabelingQuantify_s in every ROI of the ROI manager, then NPCLabelingEfficiency (Ries 2020).
| setting | default | what it does |
|---|---|---|
merge blinks (more)grouping | as each layer | Whether every step reads merged blinks, unless the step says otherwise: as each layer has it in the Render tab, or not. Choices: as each layer; merged; not merged |
| layers | ||
layerslayers.layers | {'grouped': True, 'start': 'keep', 'bounds': []} | One block per layer: whether it merges blinks, where its bounds start from, and rows of field, lo, hi (either may be empty); a quantile row takes lo and hi as fractions, resolved per file; a required row stops a file that lacks the field. |
remove filteredlayers.remove | off | Drop the localizations no layer keeps from the table, and so from the saved file. |
merge blinks (more)layers.use_grouping | not merged | This plugin only works with blinks not merged. Choices: auto; merged; not merged |
| find the pores | ||
presetfind_the_pores.preset | NPC | A structure's values, which fill the settings; -: the settings as they stand. |
methodfind_the_pores.method | circle template | How the regions are found. Choices: circle template; beads; from an id attribute; positions from a file; like examples |
| circle template | ||
shapefind_the_pores.circle.shape | ring | A ring of localizations, or a filled disc. Choices: ring; disc |
min radiusfind_the_pores.circle.min_radius_nm | 55 nm | The smallest radius looked for; equal to the max for one radius. at least 1 nm |
max radiusfind_the_pores.circle.max_radius_nm | 55 nm | The largest radius looked for. at least 1 nm |
ring widthfind_the_pores.circle.ring_width_nm | 15 nm | Half the width of the ring's band, and the width of the filter's ring. at least 1 nm |
judge on precision (more)find_the_pores.circle.precision_nm | 20 nm | The fits and the far test use only localizations more precise than this. at least 0.1 nm |
bin (more)find_the_pores.circle.bin_nm | 10 nm | Pixel size of the density image that is filtered. at least 0.1 nm |
| beads | ||
min photonsfind_the_pores.beads.min_photons | 5000 | Localizations dimmer than this are not beads. |
min lengthfind_the_pores.beads.min_fraction | 0.25 | A bead is seen in at least this fraction of the frames. 0 to 1 |
maximum jump (more)find_the_pores.beads.max_jump_nm | 150 nm | The farthest a bead moves between the frames it is seen in. at least 1 nm |
memory (more)find_the_pores.beads.memory | 50 frames | Frames a bead may be missing from its track. |
| from an id attribute | ||
attributefind_the_pores.ids.column | cluster_id | An id attribute of the table; -1 is in no region. |
at leastfind_the_pores.ids.min_size | 10 locs | The localizations an id needs to become an ROI. at least 1 locs |
the cluster's own outlinefind_the_pores.ids.outline | on | Each ROI the convex hull of its cluster; off: only the centre, with the ROI manager's circle or square. |
an ROI holdsfind_the_pores.ids.membership | what is in its shape | Its shape: every localization inside, whatever its id; its id: that id's localizations only, as a track whose path others cross. Choices: what is in its shape; its id alone |
draw it asfind_the_pores.ids.draw | auto | In the ROI manager: a line through its localizations in frame order, or the hull round them; auto: a track for a track attribute. Choices: auto; a track; an outline |
keepfind_the_pores.ids.keep | – | Which ids become ROIs, by their trace's values, e.g. eccentricity >= 3 and displacement_nm >= 300 for motors; empty: all. |
only in both coloursfind_the_pores.ids.both_colours | off | Only the ids seen in both colours of a two-colour table (MINFLUX dual colour's pair_id). |
anglefind_the_pores.ids.angle | none | The ROI's angle from its trace: for directed tracks (motors); none for diffusion, where it means nothing. Choices: none; long axis, forward in time; first to last localization |
| positions from a file | ||
filefind_the_pores.file.path | – | A table with x_nm and y_nm, and optionally the file each position belongs to. |
| like examples | ||
examplesfind_the_pores.similar.examples | used ROIs | Which ROIs are the examples; never those this method made. Choices: used ROIs; all ROIs; a keyword |
keyword listfind_the_pores.similar.keyword_list | - | The ROI keyword list that marks the examples. |
keywordfind_the_pores.similar.keyword | – | The keyword the examples have in that list. |
comparefind_the_pores.similar.compare | n_locs, rmsd_nm | The values a candidate must share with the examples, comma separated. |
spreadfind_the_pores.similar.spread | 2 SD | A candidate's values lie within the examples' mean plus or minus this many standard deviations. at least 0.1 SD |
keepfind_the_pores.keep | n_ring >= 4 and 40 <= radius_nm <= 70 and far_p >= 0.05 | Which candidates become ROIs, e.g. n_ring >= 4 and 40 <= radius_nm <= 70; empty: all. |
keep rejectedfind_the_pores.keep_rejected | off | Add the candidates keep rejects as ROIs that are not used, to look at them. |
replace earlier ROIsfind_the_pores.replace | on | Remove the ROIs this segmenter made on the file before finding them again. |
merge blinks (more)find_the_pores.use_grouping | not merged | This plugin only works with blinks not merged. Choices: auto; merged; not merged |
| each pore | ||
for eacheach_pore.regions | rois | Rois: every included ROI of the ROI manager; or the name of an id attribute, such as cluster_id. |
write backeach_pore.write_back | – | Attributes the steps make that go into the real table, comma separated; empty: nothing changes the table. |
write valueseach_pore.write_values | – | Numbers the steps measure, comma separated, each region's written onto its localizations. |
overlaps (more)each_pore.merge | last | A row in two regions takes the last region's value, the first's, their mean, or any (a flag written back). Choices: last; first; mean; any |
| NPC Corners | ||
radiuseach_pore.npc_corners.radius_nm | 55 nm | Radius of the ring band the corners are counted in. at least 1 nm |
ring widtheach_pore.npc_corners.ring_width_nm | 15 nm | Half the width of the ring band. at least 1 nm |
corner precisioneach_pore.npc_corners.precision_nm | 20 nm | Corners are counted with the localizations more precise than this. at least 0.1 nm |
count precisioneach_pore.npc_corners.n_precision_nm | 30 nm | The localizations per pore are those more precise than this. at least 0.1 nm |
count windoweach_pore.npc_corners.n_window_nm | 100 nm | ... and within this distance of the centre. at least 1 nm |
cornerseach_pore.npc_corners.corners | 8 | Symmetry of the pore: segments around the ring. at least 2 |
min per corner (more)each_pore.npc_corners.min_locs | 1 | Localizations a corner needs to count as seen. at least 1 |
merge blinks (more)each_pore.npc_corners.use_grouping | auto | Whether this step reads merged blinks: auto takes the chain's choice, or each layer's own; in each ROI, each layer's own. Choices: auto; merged; not merged |
| labelling efficiency | ||
methodlabelling_efficiency.method | corners and localizations | The joint model of corners and localizations, or SMAP's corner histogram alone. Choices: corners and localizations; corners (SMAP) |
fit fromlabelling_efficiency.fit_min | 5 | Only pores with at least this many corners. |
results fromlabelling_efficiency.evaluation | auto | The measurement whose results are analysed; auto: the only one there is, or the chain's own – asked when there are several. |
corners (more)labelling_efficiency.corners | 8 | Corners of a pore. at least 2 |
proteins per corner (more)labelling_efficiency.per_corner | 4 | Copies of the labelled protein in one corner. at least 1 |
fit to (more)labelling_efficiency.fit_max | 8 | Most corners in the fit range (SMAP's method). |
SMAP fit (more)labelling_efficiency.fit | maximum likelihood | How SMAP's method fits its histogram. Choices: maximum likelihood; SMAP's least squares |
bootstrap (more)labelling_efficiency.bootstrap | 100 | Resamplings of the pores for SMAP's error; 0: none. |
merge blinks (more)labelling_efficiency.use_grouping | auto | Whether this step reads merged blinks: auto takes the chain's choice, or each layer's own; in each ROI, each layer's own. Choices: auto; merged; not merged |