NPC Analysis

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.

What it does

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).

How it works

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).

In detail

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.

Output

Differences from SMAP

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).

References

Parameters

settingdefaultwhat it does
merge blinks (more)
grouping
as each layerWhether 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
   layers
   layers.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 filtered
   layers.remove
offDrop the localizations no layer keeps from the table, and so from the saved file.
   merge blinks (more)
   layers.use_grouping
not mergedThis plugin only works with blinks not merged. Choices: auto; merged; not merged
find the pores
   preset
   find_the_pores.preset
NPCA structure's values, which fill the settings; -: the settings as they stand.
   method
   find_the_pores.method
circle templateHow the regions are found. Choices: circle template; beads; from an id attribute; positions from a file; like examples
circle template
      shape
      find_the_pores.circle.shape
ringA ring of localizations, or a filled disc. Choices: ring; disc
      min radius
      find_the_pores.circle.min_radius_nm
55 nmThe smallest radius looked for; equal to the max for one radius. at least 1 nm
      max radius
      find_the_pores.circle.max_radius_nm
55 nmThe largest radius looked for. at least 1 nm
      ring width
      find_the_pores.circle.ring_width_nm
15 nmHalf 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 nmThe 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 nmPixel size of the density image that is filtered. at least 0.1 nm
beads
      min photons
      find_the_pores.beads.min_photons
5000Localizations dimmer than this are not beads.
      min length
      find_the_pores.beads.min_fraction
0.25A 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 nmThe farthest a bead moves between the frames it is seen in. at least 1 nm
      memory (more)
      find_the_pores.beads.memory
50 framesFrames a bead may be missing from its track.
from an id attribute
      attribute
      find_the_pores.ids.column
cluster_idAn id attribute of the table; -1 is in no region.
      at least
      find_the_pores.ids.min_size
10 locsThe localizations an id needs to become an ROI. at least 1 locs
      the cluster's own outline
      find_the_pores.ids.outline
onEach ROI the convex hull of its cluster; off: only the centre, with the ROI manager's circle or square.
      an ROI holds
      find_the_pores.ids.membership
what is in its shapeIts 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 as
      find_the_pores.ids.draw
autoIn 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
      keep
      find_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 colours
      find_the_pores.ids.both_colours
offOnly the ids seen in both colours of a two-colour table (MINFLUX dual colour's pair_id).
      angle
      find_the_pores.ids.angle
noneThe 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
      file
      find_the_pores.file.path
–A table with x_nm and y_nm, and optionally the file each position belongs to.
like examples
      examples
      find_the_pores.similar.examples
used ROIsWhich ROIs are the examples; never those this method made. Choices: used ROIs; all ROIs; a keyword
      keyword list
      find_the_pores.similar.keyword_list
-The ROI keyword list that marks the examples.
      keyword
      find_the_pores.similar.keyword
–The keyword the examples have in that list.
      compare
      find_the_pores.similar.compare
n_locs, rmsd_nmThe values a candidate must share with the examples, comma separated.
      spread
      find_the_pores.similar.spread
2 SDA candidate's values lie within the examples' mean plus or minus this many standard deviations. at least 0.1 SD
   keep
   find_the_pores.keep
n_ring >= 4 and 40 <= radius_nm <= 70 and far_p >= 0.05Which candidates become ROIs, e.g. n_ring >= 4 and 40 <= radius_nm <= 70; empty: all.
   keep rejected
   find_the_pores.keep_rejected
offAdd the candidates keep rejects as ROIs that are not used, to look at them.
   replace earlier ROIs
   find_the_pores.replace
onRemove the ROIs this segmenter made on the file before finding them again.
   merge blinks (more)
   find_the_pores.use_grouping
not mergedThis plugin only works with blinks not merged. Choices: auto; merged; not merged
each pore
   for each
   each_pore.regions
roisRois: every included ROI of the ROI manager; or the name of an id attribute, such as cluster_id.
   write back
   each_pore.write_back
–Attributes the steps make that go into the real table, comma separated; empty: nothing changes the table.
   write values
   each_pore.write_values
–Numbers the steps measure, comma separated, each region's written onto its localizations.
   overlaps (more)
   each_pore.merge
lastA 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
      radius
      each_pore.npc_corners.radius_nm
55 nmRadius of the ring band the corners are counted in. at least 1 nm
      ring width
      each_pore.npc_corners.ring_width_nm
15 nmHalf the width of the ring band. at least 1 nm
      corner precision
      each_pore.npc_corners.precision_nm
20 nmCorners are counted with the localizations more precise than this. at least 0.1 nm
      count precision
      each_pore.npc_corners.n_precision_nm
30 nmThe localizations per pore are those more precise than this. at least 0.1 nm
      count window
      each_pore.npc_corners.n_window_nm
100 nm... and within this distance of the centre. at least 1 nm
      corners
      each_pore.npc_corners.corners
8Symmetry of the pore: segments around the ring. at least 2
      min per corner (more)
      each_pore.npc_corners.min_locs
1Localizations a corner needs to count as seen. at least 1
      merge blinks (more)
      each_pore.npc_corners.use_grouping
autoWhether 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
   method
   labelling_efficiency.method
corners and localizationsThe joint model of corners and localizations, or SMAP's corner histogram alone. Choices: corners and localizations; corners (SMAP)
   fit from
   labelling_efficiency.fit_min
5Only pores with at least this many corners.
   results from
   labelling_efficiency.evaluation
autoThe 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
8Corners of a pore. at least 2
   proteins per corner (more)
   labelling_efficiency.per_corner
4Copies of the labelled protein in one corner. at least 1
   fit to (more)
   labelling_efficiency.fit_max
8Most corners in the fit range (SMAP's method).
   SMAP fit (more)
   labelling_efficiency.fit
maximum likelihoodHow SMAP's method fits its histogram. Choices: maximum likelihood; SMAP's least squares
   bootstrap (more)
   labelling_efficiency.bootstrap
100Resamplings of the pores for SMAP's error; 0: none.
   merge blinks (more)
   labelling_efficiency.use_grouping
autoWhether 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