SMAPpy help pages
What each window and plugin does, how it works, and every control and setting – the pages the ? button opens in the program. The settings tables are read off the plugins themselves, and the figures are drawn by the plugins' own code on simulated data.
← SMAPpy tutorials
The program's windows and tabs
- 3D view – A box of the data, the slab, shown from any angle, with the Render tab's layers, filters and colours.
- Assistant – Starts your own AI assistant connected to the open session, shows in the render toolbar whether it is connected and what it may do, and lists what it proposed for you to open or dismiss.
- Batch window – Runs one chain of plugins over many files, each on its own, and writes every file's table, numbers and figures to an output folder with a summary of all of them.
- Bead average – The PSF calibration window's bead average – turns z-stacks of fluorescent beads into the measured 3D PSF model the Spline 3D fitters use, and for a split camera into two models and the transformation between the halves.
- Bead selector – The beads a drift correction chose, in a table with their numbers and their tracks, to include or exclude by hand.
- Camera editor – Adds the camera of the file being fitted to your camera database – or gives a known camera a readout mode it lacked – so that the next file it takes is converted to photons without typing anything.
- DECODE training – Prepares a DECODE training from a movie – a short Spline 3D fit of it sets what the training simulates – writes it as a job folder beside the movie, trains it on this computer or a workstation over ssh, follows its curves and tries the model on the data.
- Glossary – The words of localization microscopy as SMAPpy uses them, with the other names they go by.
- Microscope manager – Keeps your microscopes – which devices they have, what each state of a device is called, and what follows from it (the pixel from the 3D lens, the emission from the filter, the NA) – so that every file is read with the optics it was taken with, without typing them.
- PSF calibration – Makes the PSF calibration the Spline 3D fitters read, from beads in a z stack, from single molecules on the coverslip in a z stack, or in situ from the blinking molecules of a measurement – the bead average or a physical model of the microscope's pupil learnt with uiPSF v2 – or, as a fourth, the curves of an elliptical Gaussian's widths in z that Astigmatic z reads, or, in the 4Pi mode, a 4Pi model for Spline 4Pi from 4Pi bead scans, and shows what each found and how well it fits.
- ROI manager – The window where ROIs are found, looked at one by one, kept or excluded, and measured.
- Regions tab – The shape every analysis ROI shares, and the way into the ROI manager and the steps that measure every ROI.
- Render tab – The layers of the picture – which localizations each one shows, and how it is drawn.
- Training hosts – The workstations DECODE trains and localizes on, reached over ssh – and, step by step, how to connect one when you have never used ssh, or how to let an AI assistant do it with you.
- Usage log – A log of what the AI assistant tried, which plugins ran and which help pages were read, sent now and then to SMAPpy's developers so they learn what is hard to find or missing.
- Your own plugins – How to make an analysis of your own – by describing it to an AI assistant, or by writing it – and where it lives.
Analysis › After fit
- 4Pi z – z from a 4Pi fit's interference phase: the cavity's phase followed in time, and each phase put on the fringe its envelope z makes most probable.
- After the fit – What a fitter runs once its last frame is in – astigmatic z, drift correction, colours, a chain – on the open localizations.
- Assign colours – Colour two-channel localizations by their photon split, r = (ch1 - ch2) / (ch1 + ch2): cut the histogram of r at its minima, or give each localization the probability of every colour from its own photon counts. Writes those probabilities, and
channel: the colour decided on, or 0 where the probabilities are too close to choose between and where no colour fits at all.
- Astigmatic z – z and its error from the widths of an elliptical Gaussian fit, by a calibration of the widths in z.
- Overlay channels – Move the localizations of a split camera's second half onto the first, by a registration from a file, fitted beads or bead movies; channel is the half.
Analysis › DNA-PAINT
- Binding kinetics – A site's time trace and binding events: bright and dark times, the
- Molecular mapping – Turns clusters into molecules: one per cluster at its centre (RESI),
- SPINNA – The share of the molecules in each kind of complex (monomers, dimers,
- Workflow – Corrects the drift on the binding sites, finds the sites, measures their binding kinetics and maps them to molecules, in one run.
- qPAINT – qPAINT over the regions: their bright and dark times pooled, the
Analysis › Drift
- COMET – Estimate drift from the selected localizations with COMET and subtract it from all of them.
- Fiducials – Estimate drift from fiducial markers – beads, or DNA origami and their binding sites – and subtract it from all localizations.
- MBM – Choose a MINFLUX measurement's MBM beads again – leaving out those that wander, jump or are noisy – and correct the localizations with the drift the others agree on, in place of Imspector's.
- RCC – Estimate drift by cross-correlating rendered time windows (RCC) and subtract it from all localizations.
Analysis › MINFLUX
- MINFLUX dual colour – Two-colour MINFLUX: the offset between the colours (beads, or the
- Quality filter – Sets MINFLUX's cfr and efo cuts from the data: cfr below its median
- Sequence QC – How the MINFLUX sequence ran: the attempts passed and lost per
- Sequence table – The MINFLUX sequence of every open measurement, an iteration a line,
Analysis › MINFLUX › Workflow
- MINFLUX kinesin – 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.
Analysis › Measure
- Blinking – On-times, dark times and blinks per molecule; per region, the blinks
- Circle fit – A circle fitted to the localizations, per layer: its centre, radius and
- Cluster shape – The size, extent, orientation and density of the localizations: the
- Ground Truth – A fit of a simulation against where the molecules really were.
- Histogram – The histogram of any column, per layer, with its mean, median,
- Id statistics – Per trace, track or cluster at once: its localizations, the centre and
- Image quality – Map where each layer's localizations disagree with a widefield image of the same field (SQUIRREL's error map, with RSE and RSP) and where the picture resolves what (the local FRC); written to the localizations, as image layers or as TIFFs, and ranked by QnR across layers.
- Line Profile – Profiles along or across a line ROI, fitted without binning them.
- Localization Precision – The precision the data shows, beside the precision the fitter expected.
- Localization Statistics – Photons, localization precision and on-time, each with its law fitted.
- NPC Corners – Counts the corners a nuclear pore shows and the localizations it has.
- Spatial statistics – Whether the localizations are clustered, and at what scale: the pair
- Stability – How still the sample is, from beads: the vibrations of each bead, their
- Time Course – The localization rate, any column's median and the image tags
Analysis › Process
- Collapse by id – Replace the table with one row per id – a blink, a track, a cluster --
- Combine files – Make the open files one acquisition: frames and time continue from one file to the next, ids stay apart, and every localization gets file number 0.
- Edit attributes – Rename a column of the localizations, or remove columns.
- File conditions – Writes what differs between the open files – from their names by a
- History – What has been done to these localizations, with the settings used.
- Image Tags – The per-frame image tags of the acquisition (piezo z, UV pulse, ...)
- Layers – The layers' bounds and whether they merge blinks, as the Render tab would set them.
- Math Parser – A new localization field from an expression in the existing ones.
- Neighbourhood – Per localization, what is around it: the neighbours within a radius,
- Process image – Subtract a smooth background from an image layer – Gaussian, rolling ball or SMAP's wavelet – and/or normalise its local contrast; the result is a new image layer at the original's place.
- Remove Localizations – Remove, or hide, the localizations inside or outside the ROI.
- Shuffle ids – Write an integer column with its ids in a random order, so that
- Transform – Move a file's localizations (or one channel of them), or resample an image into a new one, <name>_T: typed shift, rotation, scale and mirror, a named transformation, a move a loaded file records (a two-channel fit's overlay), a transformation file, or the drift of another file recorded at the same time.
Analysis › Regions
- Accept proposals – Sets on each ROI what a per-region step proposed for it – its angle,
- Average ROIs – Centres every used ROI, turns it to one orientation and superimposes
- Centre ROIs – Moves every used ROI onto the centre of its localizations: a fitted
- Filter ROIs – Includes or excludes ROIs by a condition on what was measured in them
- Filter regions – Keeps the localizations of the regions – ROIs, clusters, traces --
- Find clusters – Finds clusters – by DBSCAN, Voronoi density, HDBSCAN or local maxima
- Remove double ROIs – Of two used ROIs closer than a distance, keeps the one with more
- Segment regions – Finds regions and makes ROIs of them: rings or discs by a circle
- Sort ROIs – Orders the ROI manager's list of ROIs by what was measured in them or
Analysis › Regions › Summarize
- Compare groups – The measures of a region table compared between groups of regions --
- Curves – The mean curve of an evaluation over the regions, with its standard
- Export table – Write the results table – a row per ROI or region, a column per
- Histograms – Distributions of what was measured per region, one histogram per column.
- NPC labelling efficiency – The labelling efficiency of nuclear pores, from the corners each shows
Analysis › Regions › Workflow
- NPC Analysis – Finds the nuclear pores of the file, counts their corners and localizations, and fits the labelling efficiency, in one run.
Analysis › Regions
- Write results – Writes what was measured per region somewhere it is used: onto the
Analysis › Register
- Calibrate transform – Measure the transformation between the two channels of a split camera from localizations fitted as two channels: the layout from the microscope or chosen, no initial shift and no magnification needed.
- MBM registration – Put one MINFLUX measurement onto another by the MBM beads both saw:
- Register layers – Measure the shift of a target layer against a reference layer by cross-correlation – localizations as they show, or images – in x and y, optionally z, and keep it as a named transformation that Transform applies.
Analysis › Tracking
- Find steps – The steps of every trace (AutoStepFinder or BNP-Step, split and merge): step
- Link tracks – Links localizations in successive frames into tracks: track_id and
- Trace inspector – One trace inspected: positions and quality against time with a
- Trace statistics – Per trace or track: displacement, velocity, the track's axes, the
- Tracking analysis – How the tracks move: the mean squared displacement, with D and alpha
File › Export
- Image – Save the picture as the window shows it – its layers, panels, scale
- Image layer – Save an image layer's image as a 32-bit float TIFF, its values as they are, with its pixel size and its place, which ImageJ and File > Open read back.
- Localizations – Write the localizations for another program: csv, ThunderSTORM's csv,
- ROI images – Every ROI as a picture at one scale, its outline and measured values
- Stack – A movie along the frames, or a stack of z slices: the view rendered
File › Load
- Auto – Read a localization file of any known format into the session.
- Load – Open: choose files and open them in place of the open ones; Add: add them as more files. Localization tables in any format Load from path reads; images as sources an image layer can show
File › Save
- smappy HDF5 – Write the current table, its history and its ROIs.
File › Simulate
- Simulate – A scene – structures, a background, beads, diffusing particles, in
Localize
- Camera noise calibration – measure each pixel's offset and read noise of an sCMOS from a dark movie, and keep it as the camera's noise map for fits with per-pixel noise
- DECODE – Deep-learning fitter for high densities (DECODE).
- Gaussian 2D – Detect and fit with a free-width Gaussian PSF: x, y, photons, sigma.
- Gaussian 2D 2C – Detect and fit both halves of a split frame as one emitter with a Gaussian PSF, sharing x and y: adds the photon ratio that tells the two colours apart. No PSF calibration; the registration can be measured from the movie itself.
- PSF calibration – make the PSF calibration Spline 3D and Spline 3D 2C read: from bead z-stacks, the bead average or a physical model of the pupil and its aberrations learnt with uiPSF v2; or that model learnt in situ from the blinking molecules of a measurement; opens its own window
- Raw channel offset – How far the bead map between a split camera's halves is off in the sample: the crosstalk of every molecule into the other half, summed from the raw frames where the map puts it; per region, with a shift or affine correction for Transform.
- Spline 3D – Detect and fit with an experimental spline PSF from a bead calibration: adds z.
- Spline 3D 2C – Detect and fit both halves of a split frame as one emitter, sharing x, y and z: adds the photon ratio that tells the two colours apart.
- Spline 4Pi – Fit 4Pi data: each molecule in every phase channel at once, with the IAB spline model, for x, y, the envelope's z and the interference phase.
- Train DECODE – train a DECODE network for the DECODE fitter: a prefit of the movie sets what the training simulates, the job trains here or on a workstation, and the window follows it; opens its own window