Analysis › MINFLUX › Workflow · version 1
Quality cuts, trace starts left out, the two colours registered and joined into molecules, an ROI per walking kinesin and its steps, in one run.
Takes a two-colour MINFLUX kinesin measurement from its localizations to the steps of each molecule that walks: MINFLUX's quality cuts, each trace's unsettled start left out, the two colours put on top of each other and joined into molecules, an ROI per walking kinesin, and their steps.
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. Six 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, saved under another name, and run over many files in a batch.
It runs on one colour too: there step 4 has nothing to join, and the ROIs and steps are of each trace (tid).
Open the tracking measurement and, beside it, the bead measurement taken before it (File > Open: both measurements of the .msr, or both files), and run it on a layer that shows the tracking.
1. Localizations. The layers step shows the localizations, not merged traces: pairing and steps are made of localizations. Its filter stays as the Render tab has it.
2. Quality. Quality filter sets MINFLUX's cfr and efo cuts from the data.
3. Trace starts. Trace statistics finds each trace's start, while it settles (tail rule moving molecule: until the rolling spread of its steps settles), per colour, and writes it as in_tail; the next layers step leaves it out.
4. Colours. MINFLUX dual colour measures the offset between the colours, moves the second colour onto the first, and joins the traces of both colours into molecules, pair_id.
5. Kinesins. Segment regions with the MINFLUX kinesin preset makes an ROI of every molecule of 20 localizations or more that walks, drawn as its track and turned along it, and annotated in the keyword list colours (single, dual; apart comes from Find steps). With keep non-tracks the molecules that do not walk get ROIs too, unused, to look at.
6. Steps. Find steps on pair_id, each colour with its own steps on one clock and in one frame (two colours on auto), along the direction each molecule walks in, on the used ROIs only (only ROIs' traces): the step sizes and dwell times pooled over them, and a row per kinesin, with how its two colours move together (comove_share). To orient the ROIs by where each moves, and to mark the molecules in both colours that do not move as one apart, run Find steps as a per-region step in the ROI manager and apply its proposals.
Which molecules walk. kinesins kept is a condition on each molecule's track, measured on its localizations in time order: n_locs, displacement_nm, velocity_nm_per_s, eccentricity, linearity, n_colours and the others from an id attribute lists. The default, n_locs >= 20 and displacement_nm >= 100 and linearity >= 0.8, asks for a molecule that moved 100 nm with its position along the track rising steadily with time. linearity is the squared correlation of that position with time: near 1 for a motor walking on; near 0 for one stuck, or diffusing to and fro along its microtubule, which is as elongated. In the two-colour kinesin data this was made on, the 17 tracks that walked 100 to 270 nm had 0.8 to 0.98, at 200 to 600 nm/s. Add and n_colours == 2 for the molecules seen in both colours, which a two-colour step analysis needs (or tick both colours only); leave out the linearity for every longer track.
Why not a region filter before the steps. An id column's measurements never see the region filter – a molecule's own numbers do not depend on which molecules are shown – so Find steps takes the ROIs' molecules through its own only ROIs' traces.
Nothing changes until the end. The chain runs on a copy of the session; the table, the ROIs and the results reach the session only when the whole chain has succeeded.
in_tail and pair_id.pair_id.| 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 |
| quality | ||
cfrquality.cfr | on | An upper bound at the median plus k robust sigmas. |
kquality.k | 2 sigma | Robust standard deviations above the median. 0.5 to 10 sigma |
efoquality.efo | on | An upper bound at the valley before the two-molecule peak. |
merge blinks (more)quality.use_grouping | not merged | This plugin only works with blinks not merged. Choices: auto; merged; not merged |
| trace starts | ||
id attributetrace_starts.id_column | tid | The traces; auto: tid, else track_id, else cluster_id. |
| trace start (tail) | ||
tail ruletrace_starts.tail.rule | moving molecule | Still: until the trace comes within reach of its settled position; moving: until its steps' rolling std settles. Choices: none; still molecule; moving molecule |
numbers without the tailtrace_starts.tail.without_tail | on | Measure each trace on its settled part. |
settled fromtrace_starts.tail.reference_from | 20 | Still: the localization the settled position starts at. 1 to 10000 |
settled overtrace_starts.tail.reference_window | 30 | Still: localizations whose median is the settled position. 3 to 10000 |
reachtrace_starts.tail.k | 3 sigma | Still: within this many robust sigmas of the settled position. 0.5 to 20 sigma |
rolling windowtrace_starts.tail.rolling_window | 10 | Moving: steps the rolling std is taken over. 3 to 1000 |
settled belowtrace_starts.tail.rolling_limit_nm | 7 nm | Moving: the rolling std of the steps below which the trace has settled. at least 0.1 nm |
cut after cfr abovetrace_starts.cfr_limit | 0 | 0: off; else a trace ends at its first cfr above this (MINFLUX). 0 to 10 |
write the rotated tracktrace_starts.write_rotated | off | x_rot_nm, y_rot_nm on the localizations (the long axis on x, forward in time), and the track's angle and length. |
write the tailtrace_starts.write_tail | on | in_tail (and after_cfr) on the localizations, to filter or colour by. |
merge blinks (more)trace_starts.use_grouping | not merged | This plugin only works with blinks not merged. Choices: auto; merged; not merged |
| without the starts | ||
layerswithout_the_starts.layers | {'grouped': False, 'start': 'keep', 'bounds': [{'field': 'in_tail', 'lo': 0, 'hi': 0}]} | 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 filteredwithout_the_starts.remove | off | Drop the localizations no layer keeps from the table, and so from the saved file. |
merge blinks (more)without_the_starts.use_grouping | not merged | This plugin only works with blinks not merged. Choices: auto; merged; not merged |
| colours | ||
| offset | ||
offset fromcolours.offset.source | auto | Auto: the bead measurements if one is open, else the molecules themselves. Choices: auto; bead measurements; the molecules (fit); a named transformation; typed; none |
beads beforecolours.offset.before | auto | The bead measurement taken before the tracking; auto: the last one. |
beads aftercolours.offset.after | auto | One taken after it, interpolated between the two; auto: the first one after, if any. |
MBM colour driftcolours.offset.mbm_drift | on | The colours' drift against each other over time, from MBM beads recorded in both colours. |
drift knot spacing (more)colours.offset.knot_s | 120 s | The colour drift's spline, a coefficient this often. 5 to 10000 s |
moving from (more)colours.offset.still_nm | 30 nm | A molecule moving less is still: it tells the offset, not the lead along the track. |
dxcolours.offset.dx_nm | 0 nm | Colour 1 - colour 0, typed. |
dycolours.offset.dy_nm | 0 nm | Colour 1 - colour 0, typed. |
transformationcolours.offset.named | - | A named transformation that puts colour 1 onto colour 0. |
| pairing | ||
match withincolours.pairing.max_dt_ms | 5 ms | A colour-1 localization is matched with the colour-0 one nearest in time, if this close. at least 0.01 ms |
apart at mostcolours.pairing.max_distance_nm | 30 nm | How far apart a match may be, the offset taken off. at least 1 nm |
for a share ofcolours.pairing.min_fraction | 0.5 | The share of the matches that must be that close. 0 to 1 |
matched at leastcolours.pairing.min_matched | 10 locs | Two traces with fewer matches are not one molecule. at least 1 locs |
overlap at least (more)colours.pairing.min_overlap_s | 0 s | Two traces measured together for less are not one. |
move colour 1 onto colour 0colours.apply | on | Off: only measure and pair, the positions as they are. |
keep ascolours.name | – | The name the constant offset is kept under for Transform; empty: by the colours. |
merge blinks (more)colours.use_grouping | not merged | This plugin only works with blinks not merged. Choices: auto; merged; not merged |
| kinesins | ||
presetkinesins.preset | MINFLUX kinesin | A structure's values, which fill the settings; -: the settings as they stand. |
methodkinesins.method | from an id attribute | How the regions are found. Choices: circle template; beads; from an id attribute; positions from a file; like examples |
| circle template | ||
shapekinesins.circle.shape | disc | A ring of localizations, or a filled disc. Choices: ring; disc |
min radiuskinesins.circle.min_radius_nm | 30 nm | The smallest radius looked for; equal to the max for one radius. at least 1 nm |
max radiuskinesins.circle.max_radius_nm | 150 nm | The largest radius looked for. at least 1 nm |
ring widthkinesins.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)kinesins.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)kinesins.circle.bin_nm | 10 nm | Pixel size of the density image that is filtered. at least 0.1 nm |
| beads | ||
min photonskinesins.beads.min_photons | 5000 | Localizations dimmer than this are not beads. |
min lengthkinesins.beads.min_fraction | 0.25 | A bead is seen in at least this fraction of the frames. 0 to 1 |
maximum jump (more)kinesins.beads.max_jump_nm | 150 nm | The farthest a bead moves between the frames it is seen in. at least 1 nm |
memory (more)kinesins.beads.memory | 50 frames | Frames a bead may be missing from its track. |
| from an id attribute | ||
attributekinesins.ids.column | auto | An id attribute of the table; -1 is in no region. |
at leastkinesins.ids.min_size | 20 locs | The localizations an id needs to become an ROI. at least 1 locs |
the cluster's own outlinekinesins.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 holdskinesins.ids.membership | its id alone | 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 askinesins.ids.draw | a track | 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 |
keepkinesins.ids.keep | displacement_nm >= 100 and linearity >= 0.8 | Which ids become ROIs, by their trace's values, e.g. eccentricity >= 3 and displacement_nm >= 300 for motors; empty: all. |
only in both colourskinesins.ids.both_colours | off | Only the ids seen in both colours of a two-colour table (MINFLUX dual colour's pair_id). |
anglekinesins.ids.angle | long axis, forward in time | 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 | ||
filekinesins.file.path | – | A table with x_nm and y_nm, and optionally the file each position belongs to. |
| like examples | ||
exampleskinesins.similar.examples | used ROIs | Which ROIs are the examples; never those this method made. Choices: used ROIs; all ROIs; a keyword |
keyword listkinesins.similar.keyword_list | - | The ROI keyword list that marks the examples. |
keywordkinesins.similar.keyword | – | The keyword the examples have in that list. |
comparekinesins.similar.compare | n_locs, rmsd_nm | The values a candidate must share with the examples, comma separated. |
spreadkinesins.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 |
keepkinesins.keep | n_locs >= 10 | Which candidates become ROIs, e.g. n_ring >= 4 and 40 <= radius_nm <= 70; empty: all. |
keep rejectedkinesins.keep_rejected | off | Add the candidates keep rejects as ROIs that are not used, to look at them. |
replace earlier ROIskinesins.replace | on | Remove the ROIs this segmenter made on the file before finding them again. |
merge blinks (more)kinesins.use_grouping | not merged | This plugin only works with blinks not merged. Choices: auto; merged; not merged |
| steps | ||
id attributesteps.id_column | auto | The traces; auto: tid, else track_id, else cluster_id. |
at leaststeps.min_locs | 20 localizations | Shorter traces are passed over. at least 4 localizations |
methodsteps.method | AutoStepFinder | AutoStepFinder: greedy fit and S-score, fast; BNP-Step: the number of steps learned by Bayesian sampling, slower. Choices: AutoStepFinder; BNP-Step (Bayesian) |
| AutoStepFinder | ||
thresholdsteps.autostepfinder.threshold | 0.15 | A round is accepted when its S-score peaks above this; lower finds more steps. 0 to 10 |
overshootsteps.autostepfinder.overshoot | 1 | Takes this many times the steps the S-score finds (SMAP's coarseness). 0.1 to 3 |
| BNP-Step | ||
sweepssteps.bnp.sweeps | 400 | Gibbs sampling sweeps, started from AutoStepFinder's steps; more is slower and settles better. 20 to 100000 |
step priorsteps.bnp.height_nm | 0 nm | The prior width of a step; 0: three times each trace's noise. |
levelssteps.stat | mean | A plateau's level: its points' mean or median. Choices: mean; median |
split/merge tosteps.step_nm | 0 nm | 0: off; else merge steps smaller and split steps larger than this expected size. |
two colourssteps.colours | auto | Auto: in a two-colour table each colour of a molecule its own steps, both in colour 0's frame and on one clock. Choices: auto; each its own steps; as one trace |
| moving together | ||
windowsteps.comove.window_s | 0.5 s | The two colours' lines fitted in windows this long; 0: one line over the whole time both are seen (frames where there is no time_s). |
directions within (more)steps.comove.max_angle_deg | 30 ° | The angle between the colours' directions in a window. 0 to 180 ° |
speeds within (more)steps.comove.max_ratio | 1.5 × | The faster colour's speed over the slower one's. at least 1 × |
lines within (more)steps.comove.max_distance_nm | 50 nm | The distance between the lines at the window's centre. |
judged from (more)steps.comove.min_travel_nm | 30 nm | A window is judged when each colour is seen for as long as the motor takes to travel this: a few steps. |
together fromsteps.comove.min_share | 0.5 | A molecule moves together when this share of its moving windows match; else its ROI is proposed 'apart'. 0 to 1 |
only ROIs' tracessteps.in_rois | on | Only the ids the ROI manager's used ROIs hold (an ROI of its id alone): the kinesins Segment regions found. |
track axis from (more)steps.axis | its moving parts | The direction it walks in where it moves, or the long axis of all its localizations, stuck parts included. Choices: its moving parts; all its localizations |
moving window (more)steps.window_s | 0.1 s | Where it moves is judged from its mean position over windows this long (frames where there is no time_s). at least 0.0001 s |
moving from (more)steps.min_speed | 100 nm/s | Two windows in a row this much faster than standing still count as moving (nm per frame where there is no time_s). |
output (more)steps.output | region table | A region table only; plateau and step_level on the localizations; or a file of one localization per plateau. Choices: region table; plateaus on the localizations; steps as a file |
localizations as a line (more)steps.line | on | The traces' localizations joined in time order in the figure; off, as dots. |
guide lines every (more)steps.guide_nm | 16 nm | Thin grey lines behind the traces this far apart, from the first plateau: a ruler for the steps; 0: none. |
smoothing (more)steps.smooth_stat | running median | The figure's smoothed line (its 'smoothed' tick): a running median or mean. Choices: running median; running mean |
smooth over (more)steps.smooth_n | 9 localizations | The running window of the smoothed line. 2 to 1000 localizations |
merge blinks (more)steps.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. |