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.
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).
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.
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.
cluster_id and n_in_cluster.cluster_id.xy_err_nm), localizations and binding events.| setting | default | what it does |
|---|---|---|
merge blinks (more)grouping | not merged | 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': 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 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 |
| coarse drift | ||
time windowscoarse_drift.n_timepoints | 20 | How many windows the acquisition is cut into: more follow faster drift, fewer are less noisy. at least 2 |
pixel sizecoarse_drift.pixelsize_nm | 15 nm | The pixel of the images that are correlated; about the localization precision. at least 1 nm |
z bin (more)coarse_drift.z_pixelsize_nm | 5 nm | The bin width of the z histograms. at least 0.1 nm |
max driftcoarse_drift.max_drift_nm | 500 nm | The largest drift between any two windows that can be found. at least 1 nm |
peak fit half-width (more)coarse_drift.fit_window | 3 px | The 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 px | A wider field of view is folded back onto itself, to keep the correlation fast. at least 64 px |
correct zcoarse_drift.use_z | auto | Auto: if the table has z. |
merge blinkscoarse_drift.group | on | Merge the localizations of one blink into one before measuring. |
within (more)coarse_drift.group_dx_nm | auto | How close localizations in consecutive frames must be to be one blink; auto: the session's merge settings. |
dark frames (more)coarse_drift.group_dt | auto | How many dark frames a blink may skip; auto: the session's merge settings. |
tile (more)coarse_drift.tile_nm | 200 nm | The 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 | auto | Auto: square tiles. at least 1 nm |
max axial drift (more)coarse_drift.axial_max_drift_nm | 200 nm | How far from zero the axial correlation peak is looked for. at least 1 nm |
skip zero shift (more)coarse_drift.exclude_zero_lag | on | Leave the zero-shift sample out of the axial peak search. |
error barcoarse_drift.split_half | on | Estimate 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 estimated | The 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 merged | This plugin only works with blinks not merged. Choices: auto; merged; not merged |
| sites | ||
algorithmsites.algorithm | local maxima | DBSCAN: 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 | ||
radiussites.dbscan.radius_nm | 50 nm | Eps: how close a neighbour is; 0: chosen from the density, as SMAP does. |
neighbourssites.dbscan.neighbours | 10 | K: the neighbours within the radius that make a core point. at least 1 |
in 3Dsites.dbscan.use_z | on | Cluster in x, y and z when the table has z_nm. |
| Voronoi | ||
density factorsites.voronoi.factor | 2 | Dense: a Voronoi density above this many times the field's mean. |
minimum sizesites.voronoi.min_size | 10 | Localizations in a cluster; smaller ones are none. at least 1 |
| HDBSCAN | ||
minimum sizesites.hdbscan.min_cluster_size | 10 | The fewest localizations a cluster has. at least 2 |
neighbourssites.hdbscan.min_samples | auto | Auto: the minimum size; more is more conservative, with more noise. at least 1 |
in 3Dsites.hdbscan.use_z | on | Cluster in x, y and z when the table has z_nm. |
| local maxima | ||
radiussites.local_maxima.radius_nm | 8 nm | A site's localizations lie within it; about twice the precision (NeNA). at least 0.1 nm |
minimum sizesites.local_maxima.min_points | 10 | Localizations a cluster has at least. at least 1 |
in 3Dsites.local_maxima.use_z | on | Cluster in x, y and z when the table has z_nm. |
z radiussites.local_maxima.z_radius_nm | 20 nm | The neighbourhood's half height in z. at least 0.1 nm |
frame analysissites.frame_analysis | on | No cluster where its localizations bunch in time: a sticky imager. |
merge blinks (more)sites.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 |
| drift from the sites | ||
markersdrift_from_the_sites.markers | structures | Beads: the brightest localization a frame, above min photons; structures (DNA origami, binding sites): every localization, weighted by its precision. Choices: beads; structures |
markers fromdrift_from_the_sites.source | id column | Find 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 attributedrift_from_the_sites.id_column | cluster_id | Each id (-1 is none) is one marker: cluster_id from Find clusters, bead_id from a run before. |
min photonsdrift_from_the_sites.min_photons | 5000 | Localizations dimmer than this are not beads. |
min lengthdrift_from_the_sites.min_fraction | 0.25 | A 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 nm | The farthest a bead moves between the frames it is seen in. at least 1 nm |
memory (more)drift_from_the_sites.memory | 50 frames | Frames a bead may be missing from its track. |
knot spacingdrift_from_the_sites.spline_knot_frames | 500 frames | Frames between the spline's coefficients. at least 5 frames |
rejection – MadRule's numbers as a part of a plugin's settings. | ||
robust sigmasdrift_from_the_sites.rejection.k | 3 | A bead is out where its noise, wander or jump is this many robust standard deviations above the others'. |
margindrift_from_the_sites.rejection.margin_nm | 2 nm | And above the others' median by at least this. |
min beadsdrift_from_the_sites.rejection.min_beads | 2 | Never fewer beads than this. 1 to 100 |
by handdrift_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 zdrift_from_the_sites.use_z | auto | Auto: if the table has z. |
reference (more)drift_from_the_sites.reference | as estimated | The 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 merged | This plugin only works with blinks not merged. Choices: auto; merged; not merged |
| sites again | ||
algorithmsites_again.algorithm | local maxima | DBSCAN: 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 | ||
radiussites_again.dbscan.radius_nm | 50 nm | Eps: how close a neighbour is; 0: chosen from the density, as SMAP does. |
neighbourssites_again.dbscan.neighbours | 10 | K: the neighbours within the radius that make a core point. at least 1 |
in 3Dsites_again.dbscan.use_z | on | Cluster in x, y and z when the table has z_nm. |
| Voronoi | ||
density factorsites_again.voronoi.factor | 2 | Dense: a Voronoi density above this many times the field's mean. |
minimum sizesites_again.voronoi.min_size | 10 | Localizations in a cluster; smaller ones are none. at least 1 |
| HDBSCAN | ||
minimum sizesites_again.hdbscan.min_cluster_size | 10 | The fewest localizations a cluster has. at least 2 |
neighbourssites_again.hdbscan.min_samples | auto | Auto: the minimum size; more is more conservative, with more noise. at least 1 |
in 3Dsites_again.hdbscan.use_z | on | Cluster in x, y and z when the table has z_nm. |
| local maxima | ||
radiussites_again.local_maxima.radius_nm | 8 nm | A site's localizations lie within it; about twice the precision (NeNA). at least 0.1 nm |
minimum sizesites_again.local_maxima.min_points | 10 | Localizations a cluster has at least. at least 1 |
in 3Dsites_again.local_maxima.use_z | on | Cluster in x, y and z when the table has z_nm. |
z radiussites_again.local_maxima.z_radius_nm | 20 nm | The neighbourhood's half height in z. at least 0.1 nm |
frame analysissites_again.frame_analysis | on | No cluster where its localizations bunch in time: a sticky imager. |
merge blinks (more)sites_again.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 |
| each site | ||
for eacheach_site.regions | cluster_id | Rois: every included ROI of the ROI manager; or the name of an id attribute, such as cluster_id. |
write backeach_site.write_back | – | Attributes the steps make that go into the real table, comma separated; empty: nothing changes the table. |
write valueseach_site.write_values | – | Numbers the steps measure, comma separated, each region's written onto its localizations. |
overlaps (more)each_site.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 |
| Binding kinetics | ||
link gapeach_site.binding_kinetics.link_gap | 3 frames | Frames without a localization inside one binding event; a longer gap is a dark time. |
estimatoreach_site.binding_kinetics.estimator | maximum likelihood | How the mean bright and dark times are found. Choices: maximum likelihood; cumulative fit (Picasso) |
influxeach_site.binding_kinetics.influx | auto | Bindings per frame of one site, from qPAINT's calibration; empty: no site count. |
time ineach_site.binding_kinetics.time_axis | frames | The unit of the trace's time axis. Choices: frames; seconds |
windows (more)each_site.binding_kinetics.windows | 50 | Windows of the trace kept for Curves. at least 2 |
acquisition (more)each_site.binding_kinetics.frames | auto | Auto: the file's frames, else its first to last localization. at least 1 frames |
frame time (more)each_site.binding_kinetics.frame_time_ms | auto | Auto: the file's, else its exposure. at least 0.001 ms |
merge blinks (more)each_site.binding_kinetics.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 |
| molecules | ||
methodmolecules.method | centres (RESI) | Centres: one molecule per cluster; G5M: the molecules in each cluster, by a Gaussian mixture. Choices: centres (RESI); G5M |
clustersmolecules.id_column | auto | The id attribute naming the clusters; auto: cluster_id. |
outputmolecules.output | a file of molecules | The molecules as a new file, or each localization's molecule. Choices: a file of molecules; molecule_id on the localizations |
in 3Dmolecules.use_z | on | X, y and z when the table has z_nm. |
| G5M | ||
minimum sizemolecules.g5m.min_locs | 10 | Localizations a molecule has at least. at least 2 |
widthmolecules.g5m.sigma_min | 0.8 | A molecule's width at least this many times its localizations' precision. at least 0.05 |
tomolecules.g5m.sigma_max | 1.5 | And at most this many times. at least 0.05 |
rounds without improvement (more)molecules.g5m.max_rounds | 3 | Molecules added one by one stop after this many without a better BIC. at least 1 |
largest cluster (more)molecules.g5m.max_locs | auto | A cluster with more localizations is passed over (a bead); empty: none. at least 1 |
Picasso's filtermolecules.g5m.filter | on | Drop sticky molecules, bad fits and those with few binding events. |
frame spread (more)molecules.g5m.min_std_frame | 0.1 | A molecule's frames' standard deviation at least this fraction of the acquisition. 0 to 1 |
p-value (more)molecules.g5m.min_p | 0.015 | A molecule's p_val above this. 0 to 1 |
binding events (more)molecules.g5m.min_events | 3 | A molecule's n_events above this. |
merge blinks (more)molecules.use_grouping | not merged | This plugin only works with blinks not merged. Choices: auto; merged; not merged |
show the stepsshow_steps | off | Every step's settings, not only the ones this chain asks. |