Workflow

Analysis › DNA-PAINT · version 1

Corrects the drift on the binding sites, finds the sites, measures their binding kinetics and maps them to molecules, in one run.

What it does

Takes a DNA-PAINT measurement from its localizations to its molecules in one run: the drift corrected on the binding sites themselves, the sites found, each site's binding kinetics measured, and the molecules – one per site, at its centre – written as a new file. It is the analysis of Picasso (the Jungmann lab's DNA-PAINT software) as SMAPpy's plugins do it.

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, folded behind show the steps. Four settings are shown at the top:

The pages of the plugins explain the methods; this one what running them together does. 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 on DNA-PAINT data whose sites are separate structures – DNA origami, proteins labelled sparsely enough that each site stands alone – and whose localizations have a precision (xy_err_nm).

How it works

1. Localizations. The layers step shows the first layer's localizations, not merged blinks: sites and molecules are made of localizations. Its filter stays as the Render tab has it.

2. Coarse drift. RCC corrects the drift to a few nanometres, so that a site's localizations come together.

3. Sites. Find clusters with local maxima finds each binding site, and its frame analysis drops the clusters whose localizations bunch in time: an imager stuck to the glass, dirt.

4. Drift from the sites. Fiducials with markers set to structures and the sites (cluster_id) as markers: every site is a marker, its localizations fitted with one smooth drift curve and an offset for each site. This is the second round of Picasso's drift correction from DNA origami, on the binding sites, and corrects the drift to a fraction of a nanometre.

5. Sites again. The sites found again on the corrected positions, where each is tighter.

6. Each site's kinetics. The each site block runs Binding kinetics once in every site: its binding events, bright and dark times and qPAINT index, kept as a row per site (cluster_id) for Filter regions, the Regions tab or qPAINT.

7. Molecules. Molecular mapping puts a molecule at the centre of each site and adds them as a file, molecules of the file's name: RESI's step (resolution enhancement by sequential imaging). For RESI, run the chain on each imaging round and register the rounds' molecules with Register layers.

In detail

Why two rounds of sites. The sites of step 3 are found on positions corrected only by RCC, which leaves a few nanometres – enough to smear a site over its neighbour's radius. They are good enough as drift markers: Fiducials leaves out the sites whose localizations disagree with the others' drift. After the drift from the sites, the clouds are as tight as the precision, and step 5 finds them again.

The site radius. About twice the localization precision, as Picasso advises: on the simulated origami of the DNA-PAINT origami (20 nm grid) preset (3 nm precision, sites 20 nm apart) 8 nm finds 818 of 823 sites; 10 nm, Picasso's default, joins neighbouring sites.

G5M. With molecules by set to G5M, each site's cluster is fitted with a Gaussian mixture, which splits a cluster that holds two sites the radius could not separate, and drops molecules Picasso's filter rejects. It is slower: a few hundredths of a second a site.

Nothing changes until the end. The chain runs on a copy of the session; the corrected table, the sites' results and the molecules reach the session only when the whole chain has succeeded.

Output

References

Parameters

settingdefaultwhat it does
merge blinks (more)
grouping
not mergedWhether 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': False, '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
coarse drift
   time windows
   coarse_drift.n_timepoints
20How many windows the acquisition is cut into: more follow faster drift, fewer are less noisy. at least 2
   pixel size
   coarse_drift.pixelsize_nm
15 nmThe pixel of the images that are correlated; about the localization precision. at least 1 nm
   z bin (more)
   coarse_drift.z_pixelsize_nm
5 nmThe bin width of the z histograms. at least 0.1 nm
   max drift
   coarse_drift.max_drift_nm
500 nmThe largest drift between any two windows that can be found. at least 1 nm
   peak fit half-width (more)
   coarse_drift.fit_window
3 pxThe patch the correlation peak is fitted over, for its sub-pixel position. at least 1 px
   max image size (more)
   coarse_drift.max_pixels
2048 pxA wider field of view is folded back onto itself, to keep the correlation fast. at least 64 px
   correct z
   coarse_drift.use_z
autoAuto: if the table has z.
   merge blinks
   coarse_drift.group
onMerge the localizations of one blink into one before measuring.
   within (more)
   coarse_drift.group_dx_nm
autoHow close localizations in consecutive frames must be to be one blink; auto: the session's merge settings.
   dark frames (more)
   coarse_drift.group_dt
autoHow many dark frames a blink may skip; auto: the session's merge settings.
   tile (more)
   coarse_drift.tile_nm
200 nmThe axial pass correlates z histograms in tiles of the field of view this size. at least 1 nm
   tile y (more)
   coarse_drift.tile_y_nm
autoAuto: square tiles. at least 1 nm
   max axial drift (more)
   coarse_drift.axial_max_drift_nm
200 nmHow far from zero the axial correlation peak is looked for. at least 1 nm
   skip zero shift (more)
   coarse_drift.exclude_zero_lag
onLeave the zero-shift sample out of the axial peak search.
   error bar
   coarse_drift.split_half
onEstimate again from each half of the field and show both: how far they differ is twice the curve's noise.
   reference (more)
   coarse_drift.reference
as estimatedThe frame the drift is zero at; first or last frame for consecutive files. Choices: as estimated; first frame; last frame
   merge blinks (more)
   coarse_drift.use_grouping
not mergedThis plugin only works with blinks not merged. Choices: auto; merged; not merged
sites
   algorithm
   sites.algorithm
local maximaDBSCAN: a radius and a count; Voronoi: dense cells that touch; HDBSCAN: no radius; local maxima: one cluster per DNA-PAINT site. Choices: DBSCAN; Voronoi; HDBSCAN; local maxima
DBSCAN
      radius
      sites.dbscan.radius_nm
50 nmEps: how close a neighbour is; 0: chosen from the density, as SMAP does.
      neighbours
      sites.dbscan.neighbours
10K: the neighbours within the radius that make a core point. at least 1
      in 3D
      sites.dbscan.use_z
onCluster in x, y and z when the table has z_nm.
Voronoi
      density factor
      sites.voronoi.factor
2Dense: a Voronoi density above this many times the field's mean.
      minimum size
      sites.voronoi.min_size
10Localizations in a cluster; smaller ones are none. at least 1
HDBSCAN
      minimum size
      sites.hdbscan.min_cluster_size
10The fewest localizations a cluster has. at least 2
      neighbours
      sites.hdbscan.min_samples
autoAuto: the minimum size; more is more conservative, with more noise. at least 1
      in 3D
      sites.hdbscan.use_z
onCluster in x, y and z when the table has z_nm.
local maxima
      radius
      sites.local_maxima.radius_nm
8 nmA site's localizations lie within it; about twice the precision (NeNA). at least 0.1 nm
      minimum size
      sites.local_maxima.min_points
10Localizations a cluster has at least. at least 1
      in 3D
      sites.local_maxima.use_z
onCluster in x, y and z when the table has z_nm.
      z radius
      sites.local_maxima.z_radius_nm
20 nmThe neighbourhood's half height in z. at least 0.1 nm
   frame analysis
   sites.frame_analysis
onNo cluster where its localizations bunch in time: a sticky imager.
   merge blinks (more)
   sites.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
drift from the sites
   markers
   drift_from_the_sites.markers
structuresBeads: the brightest localization a frame, above min photons; structures (DNA origami, binding sites): every localization, weighted by its precision. Choices: beads; structures
   markers from
   drift_from_the_sites.source
id columnFind the beads as bright, long tracks; take each used ROI of the ROI manager as a marker; or each id of an attribute. Choices: find them; ROI manager; id column
   id attribute
   drift_from_the_sites.id_column
cluster_idEach id (-1 is none) is one marker: cluster_id from Find clusters, bead_id from a run before.
   min photons
   drift_from_the_sites.min_photons
5000Localizations dimmer than this are not beads.
   min length
   drift_from_the_sites.min_fraction
0.25A bead is seen in at least this fraction of the frames. 0 to 1
   maximum jump (more)
   drift_from_the_sites.max_jump_nm
150 nmThe farthest a bead moves between the frames it is seen in. at least 1 nm
   memory (more)
   drift_from_the_sites.memory
50 framesFrames a bead may be missing from its track.
   knot spacing
   drift_from_the_sites.spline_knot_frames
500 framesFrames between the spline's coefficients. at least 5 frames
rejection – MadRule's numbers as a part of a plugin's settings.
      robust sigmas
      drift_from_the_sites.rejection.k
3A bead is out where its noise, wander or jump is this many robust standard deviations above the others'.
      margin
      drift_from_the_sites.rejection.margin_nm
2 nmAnd above the others' median by at least this.
      min beads
      drift_from_the_sites.rejection.min_beads
2Never fewer beads than this. 1 to 100
   by hand
   drift_from_the_sites.beads
–Markers in or out whatever the rule says, by name: 'x12.3y4.5 out', 'ROI 5 in'; Select beads... writes it.
   correct z
   drift_from_the_sites.use_z
autoAuto: if the table has z.
   reference (more)
   drift_from_the_sites.reference
as estimatedThe frame the drift is zero at; first or last frame for consecutive files. Choices: as estimated; first frame; last frame
   merge blinks (more)
   drift_from_the_sites.use_grouping
not mergedThis plugin only works with blinks not merged. Choices: auto; merged; not merged
sites again
   algorithm
   sites_again.algorithm
local maximaDBSCAN: a radius and a count; Voronoi: dense cells that touch; HDBSCAN: no radius; local maxima: one cluster per DNA-PAINT site. Choices: DBSCAN; Voronoi; HDBSCAN; local maxima
DBSCAN
      radius
      sites_again.dbscan.radius_nm
50 nmEps: how close a neighbour is; 0: chosen from the density, as SMAP does.
      neighbours
      sites_again.dbscan.neighbours
10K: the neighbours within the radius that make a core point. at least 1
      in 3D
      sites_again.dbscan.use_z
onCluster in x, y and z when the table has z_nm.
Voronoi
      density factor
      sites_again.voronoi.factor
2Dense: a Voronoi density above this many times the field's mean.
      minimum size
      sites_again.voronoi.min_size
10Localizations in a cluster; smaller ones are none. at least 1
HDBSCAN
      minimum size
      sites_again.hdbscan.min_cluster_size
10The fewest localizations a cluster has. at least 2
      neighbours
      sites_again.hdbscan.min_samples
autoAuto: the minimum size; more is more conservative, with more noise. at least 1
      in 3D
      sites_again.hdbscan.use_z
onCluster in x, y and z when the table has z_nm.
local maxima
      radius
      sites_again.local_maxima.radius_nm
8 nmA site's localizations lie within it; about twice the precision (NeNA). at least 0.1 nm
      minimum size
      sites_again.local_maxima.min_points
10Localizations a cluster has at least. at least 1
      in 3D
      sites_again.local_maxima.use_z
onCluster in x, y and z when the table has z_nm.
      z radius
      sites_again.local_maxima.z_radius_nm
20 nmThe neighbourhood's half height in z. at least 0.1 nm
   frame analysis
   sites_again.frame_analysis
onNo cluster where its localizations bunch in time: a sticky imager.
   merge blinks (more)
   sites_again.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
each site
   for each
   each_site.regions
cluster_idRois: every included ROI of the ROI manager; or the name of an id attribute, such as cluster_id.
   write back
   each_site.write_back
–Attributes the steps make that go into the real table, comma separated; empty: nothing changes the table.
   write values
   each_site.write_values
–Numbers the steps measure, comma separated, each region's written onto its localizations.
   overlaps (more)
   each_site.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
Binding kinetics
      link gap
      each_site.binding_kinetics.link_gap
3 framesFrames without a localization inside one binding event; a longer gap is a dark time.
      estimator
      each_site.binding_kinetics.estimator
maximum likelihoodHow the mean bright and dark times are found. Choices: maximum likelihood; cumulative fit (Picasso)
      influx
      each_site.binding_kinetics.influx
autoBindings per frame of one site, from qPAINT's calibration; empty: no site count.
      time in
      each_site.binding_kinetics.time_axis
framesThe unit of the trace's time axis. Choices: frames; seconds
      windows (more)
      each_site.binding_kinetics.windows
50Windows of the trace kept for Curves. at least 2
      acquisition (more)
      each_site.binding_kinetics.frames
autoAuto: the file's frames, else its first to last localization. at least 1 frames
      frame time (more)
      each_site.binding_kinetics.frame_time_ms
autoAuto: the file's, else its exposure. at least 0.001 ms
      merge blinks (more)
      each_site.binding_kinetics.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
molecules
   method
   molecules.method
centres (RESI)Centres: one molecule per cluster; G5M: the molecules in each cluster, by a Gaussian mixture. Choices: centres (RESI); G5M
   clusters
   molecules.id_column
autoThe id attribute naming the clusters; auto: cluster_id.
   output
   molecules.output
a file of moleculesThe molecules as a new file, or each localization's molecule. Choices: a file of molecules; molecule_id on the localizations
   in 3D
   molecules.use_z
onX, y and z when the table has z_nm.
G5M
      minimum size
      molecules.g5m.min_locs
10Localizations a molecule has at least. at least 2
      width
      molecules.g5m.sigma_min
0.8A molecule's width at least this many times its localizations' precision. at least 0.05
      to
      molecules.g5m.sigma_max
1.5And at most this many times. at least 0.05
      rounds without improvement (more)
      molecules.g5m.max_rounds
3Molecules added one by one stop after this many without a better BIC. at least 1
      largest cluster (more)
      molecules.g5m.max_locs
autoA cluster with more localizations is passed over (a bead); empty: none. at least 1
      Picasso's filter
      molecules.g5m.filter
onDrop sticky molecules, bad fits and those with few binding events.
      frame spread (more)
      molecules.g5m.min_std_frame
0.1A molecule's frames' standard deviation at least this fraction of the acquisition. 0 to 1
      p-value (more)
      molecules.g5m.min_p
0.015A molecule's p_val above this. 0 to 1
      binding events (more)
      molecules.g5m.min_events
3A molecule's n_events above this.
   merge blinks (more)
   molecules.use_grouping
not mergedThis plugin only works with blinks not merged. Choices: auto; merged; not merged
show the steps
show_steps
offEvery step's settings, not only the ones this chain asks.