[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72WAAXF9X6Y2VE86XF7H0MB":3,"skill-same:01M72WAAXF9X6Y2VE86XF7H0MB":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M72WAAXF9X6Y2VE86XF7H0MB","smlm",null,"Plan and run SMLM workflows including dSTORM, PALM, PAINT, and DNA-PAINT.","Micro-Claw\u002Fmicroclaw","Micro-Claw","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F320137264?v=4","01M72W9AP162N8788QFVMKTN9H","MicroClaw","01M72W9APY8G657Y1VN8K9S04G",10,"BSD-3-Clause","https:\u002F\u002Fgithub.com\u002FMicro-Claw\u002Fmicroclaw\u002Fblob\u002Fmain\u002Fmicroclaw\u002Fskills\u002Fsmlm\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: smlm\ndescription: Plan and run SMLM workflows including dSTORM, PALM, PAINT, and DNA-PAINT.\n---\n\n# Single-Molecule Localization Microscopy (SMLM) reference\n\nReturned by `load_skill(name=\"smlm\")`.\n\n## Sources\n\nCondensed from one reference paper:\n\n- **[Lelek2021]** — Lelek M, Gyparaki MT, Beliu G, Schueder F, Griffié J, Manley S,\n  Jungmann R, Sauer M, Lakadamyali M, Zimmer C. \"Single-molecule localization microscopy.\"\n  *Nat Rev Methods Primers.* 2021;1:39.\n  [doi:10.1038\u002Fs43586-021-00038-x](https:\u002F\u002Fdoi.org\u002F10.1038\u002Fs43586-021-00038-x) — the SMLM\n  primer this document is condensed from: technique variants, photophysics and blinking\n  kinetics, acquisition parameters, drift correction and the post-processing pipeline. It is\n  also the second source of `load_skill(name=\"dna-paint\")`, so the two documents agree where\n  they both cite it.\n\n## What SMLM is\n\nSMLM is a family of super-resolution techniques (PALM, STORM\u002FdSTORM, PAINT\u002FDNA-PAINT)\nthat achieve ~20–50 nm lateral resolution by imaging sparse, spatially isolated\nfluorophores frame-by-frame and fitting each PSF to extract sub-pixel (x, y)\ncoordinates. Thousands to tens of thousands of raw diffraction-limited frames are\ncollected and then processed by external localization software to build a\nsuper-resolution image from the accumulated localizations.\n\nMicroclaw's role is to:\n  1. Help the user set up the correct acquisition parameters.\n  2. Run the raw-frame stack with run_timelapse (interval_s=0 for no_requested_delay).\n  3. Export the dataset with export_dataset_as_tiff so external software can analyse it.\n  4. Optionally attach an observation-only hook for real-time density logging.\n\nMicroclaw does NOT perform localization fitting — that requires external software\nsuch as ThunderSTORM (FIJI plugin), SMAP, DECODE, or Picasso (see Software section).\n\n---\n\n## Technique variants\n\n### dSTORM (direct STORM) — most common for fixed cells\n- Fluorophore: photoswitchable synthetic dye (Alexa Fluor 647 or Cy5 recommended\n  for beginners). Requires a thiol-based photoswitching buffer (TRIS-buffered saline + 35 mM MEA\n  + enzymatic oxygen scavenger such as GLOX).\n- Two acquisition regimes — ask the user which they prefer:\n\n  A) Slow STORM (preferred — highest data quality):\n     - Pre-bleach: slowly reduce excitation power to ~0.2 kW\u002Fcm² and wait until\n       the overall signal intensity in the ROI is no longer decreasing (~1–2 min,\n       judged by eye on the live image).\n     - Acquisition: 100 ms exposure, ~6 kW\u002Fcm² excitation power.\n     - Frame count: ~80,000 frames.\n     - Expected AF647 yield: ~8,000 photons\u002Flocalization, localization\n       precision ~5 ± 2 nm lateral.\n\n  B) Regular STORM (faster, slightly reduced quality):\n     - No separate pre-bleach; begin acquisition immediately at high power.\n     - Acquisition: 30 ms exposure, ~20 kW\u002Fcm² excitation power.\n     - Frame count: ~40,000 frames.\n     - Expected AF647 yield: ~6,000 photons\u002Flocalization.\n\n- Optional 405 nm activation: the operator may pulse at low power when blinking\n  density drops too low during acquisition. The operator gradually increases the\n  pulse length and stops increasing at the maximum; if density is still dropping,\n  the acquisition is near complete. Microclaw does not automate this feedback loop.\n- Ask the user: channel name for main excitation, which STORM regime they want,\n  whether a 405 nm activation channel is available, and whether the\n  photoswitching buffer is in place.\n\n### PALM \u002F fPALM — for live cells or sparse labelling\n- Fluorophore: photoactivatable or photoconvertible fluorescent protein\n  (PA-GFP, PAmCherry, mEos family). No special buffer needed.\n- Pre-acquisition: brief low-power 405 nm pulse to activate a sparse subset;\n  image until bleached, then repeat.\n- Frame count is lower than dSTORM (typically 5,000–20,000) because each\n  molecule bleaches irreversibly after activation.\n- Ask the user: whether a 405 nm activation channel is configured and what\n  power the laser operates at.\n\n### PAINT \u002F DNA-PAINT — no photobleaching, unlimited reservoir\n- Fluorophore: transiently binding dye (e.g., Cy3B for PAINT; short imager\n  strands for DNA-PAINT). No photoswitching buffer needed.\n- ON-state lifetime (τb) and OFF-state lifetime (τd) are set by dye\u002FDNA\n  concentration and strand length, not laser power. Both are calculable:\n    - τb = 1\u002Fk_off, set by duplex length — a 9-bp duplex gives τb ≈ 500 ms, and\n      each added base pair raises τb by roughly 10× (each removed one lowers it\n      by roughly 10×). Match the camera exposure to τb.\n    - τd = 1\u002F(c_imager · k_on), with k_on ≈ 10⁶ M⁻¹s⁻¹ typical. At 10 nM,\n      τd ≈ 100 s; a site is visited at least once with ~98% probability after\n      t ≈ 4·τd, but useful images need multiple events per site (~33 min).\n- Typical frame counts: start 7,500; full datasets 10,000–100,000+, acquisition\n  can continue until sufficient sampling is achieved.\n- Imager concentration is the most consequential knob and it cuts both ways: too\n  low under-samples the structure, too high raises unbound-imager background AND\n  causes cross-talk localizations — two nearby sites bound at once, fitted as one\n  false spot between them.\n- Ask the user: imager strand concentration and identity, docking-strand target.\n- **Call `load_skill(name=\"dna-paint\")` for the full protocol** — buffer recipes,\n  the oxygen-scavenging system, strand design, sample prep, and the acquisition\n  procedure. Its numbers supersede the DNA-PAINT figures in this document.\n\n---\n\n## Acquisition parameters\n\n### Exposure time\n- Match the fluorophore ON-state lifetime: typically 10–100 ms.\n- For dSTORM (Alexa Fluor 647):\n    - Slow STORM regime: 100 ms.\n    - Regular STORM regime: 30 ms.\n- For PALM fluorescent proteins: 30–100 ms.\n- For DNA-PAINT: match τb — ~300 ms for the common 9-bp imager\u002Fdocking duplex\n  (τb ≈ 500 ms); 100–500 ms across usual duplex lengths. Longer τb allows more\n  photons per event. See `load_skill(name=\"dna-paint\")`.\n- Use: run_timelapse(exposure_ms=\u003Cvalue>, ...)\n\n### Frame interval\n- interval_s=0 means `no_requested_delay`; it permits time-axis batching,\n  subject to device support. Microclaw ships no rig-specific achieved-cadence measurement.\n- For per-frame hardware control, choose an interval whose consecutive\n  `int(k * interval_s * 1000.0)` deadlines differ throughout the frame count.\n  Any requested idle time adds delay when the engine reaches its deadline early;\n  it does not reduce the background accumulated during exposure.\n\n### Number of frames\n- Fixed-cell dSTORM:\n    - Slow STORM regime: ~80,000 frames. In a manually supervised acquisition,\n      the operator may stop when the 405 nm pulse length maxes out.\n    - Regular STORM regime: ~40,000 frames.\n    - Minimum for a small structure (e.g., centriole): ≥10,000 frames.\n- PALM: 5,000–20,000 frames.\n- DNA-PAINT: start at 7,500 frames; full datasets 10,000–100,000+, more is better.\n- If the user is unsure, start with 20,000 frames and check density.\n- Use: run_timelapse(n_frames=\u003Cvalue>, ...)\n\n### Channel selection\n- Always confirm the channel name before starting.\n  Use get_available_channels() then set_channel() to verify the active channel.\n- For dSTORM: the main excitation channel (e.g., \"TIRF-647\" or \"Cy5\").\n- Do NOT switch channels during SMLM acquisition unless doing sequential\n  multicolour imaging.\n\n### Illumination mode (TIRF vs. epi)\n- TIRF (total internal reflection fluorescence) reduces background and improves\n  SNR — strongly preferred for membrane-proximal targets (within ~200 nm of\n  the coverslip).\n- HILO (highly inclined) is a good alternative for targets slightly deeper\n  in the cell.\n- Wide-field (epi) is acceptable but will have higher background.\n- Ask the user which illumination mode their microscope is configured for.\n  In Micro-Manager this is usually a device property (e.g., \"IlluminationMode\"\n  or a TIRF motor angle). Use list_device_properties \u002F set_device_property to\n  adjust if needed.\n\n### 3D SMLM — astigmatic imaging\n- A cylindrical lens pair (astigmatic lens) placed in the emission path encodes the\n  z-position of each emitter via an asymmetric PSF: the PSF extends along x when the\n  molecule is above focus and along y when below.\n- The astigmatic lens is inserted\u002Fremoved without realigning the emission path.\n  In Micro-Manager this is typically a device property (e.g., a two-state device\n  that moves the lens in\u002Fout). Confirm with the user before starting.\n- z-range accessible: typically ±400 nm around the focal plane with good localization\n  precision. The calibration (see PSF calibration below) defines the useable z-range.\n- Achievable localization precision under ideal conditions: ~2 nm lateral, ~8 nm axial.\n- PSF calibration is required before 3D fitting: acquire a z-stack (e.g., −1 µm to\n  +1 µm in 20 nm steps) of sparse, well-separated fluorescent beads (~100 nm\n  TetraSpeck or similar). Calibration is performed in SMAP (or equivalent) and\n  produces a spline PSF model used for MLE fitting.\n- For 3D SMLM: ensure a hardware focus lock is active — axial drift over a long\n  acquisition will broaden the apparent z-distribution and cannot be fully corrected\n  in post-processing.\n- Ask the user: whether the astigmatic lens is in place and calibrated, and the\n  device property name used to toggle it.\n\n### Multicolor imaging\n- Sequential multicolor: acquire one channel at a time, switching excitation laser\n  and emission filter between rounds. Switching adds device moves and settling; prone to drift between\n  channels.\n- Simultaneous multicolor (preferred for co-localization): an image splitter\n  (dichroic + relay optics) splits the emission into two spectral bands and images\n  them side-by-side on a single camera chip. Both channels are captured in every\n  frame with no time delay.\n- Ratiometric dSTORM with far-red dyes (e.g., AF647 + CF680): two spectrally\n  overlapping far-red fluorophores are excited by the same laser and discriminated\n  by their intensity ratio in the two camera channels. This requires a calibrated\n  channel transformation (affine mapping from channel 1 pixel coordinates to\n  channel 2 coordinates).\n- For dual-channel 3D fitting, a global PSF model that covers both channels is\n  required (calibrated from the same bead stacks, fitting both channels jointly).\n- Ask the user: number of colors, labelling strategy, and whether the image splitter\n  is installed and aligned.\n\n### Objective and pixel size\n- Requires a high-NA objective (NA ≥ 1.4), typically 60× or 100× oil immersion.\n- Effective pixel size at the sample should be ~100–110 nm\n  (camera pixel \u002F total magnification). Calibrate by imaging a single bead and\n  moving the xy stage by known distances; do not rely on the nominal magnification.\n  Example: 6.5 µm camera pixel \u002F 61× total magnification ≈ 105 nm\u002Fpixel.\n- Pixel size too large → undersampling; too small → fewer molecules per FOV.\n\n---\n\n## Machine-checked pre-acquisition checklist\n\nEvery row here is answered by CALLING THE TOOL, not by inspecting an image and\nasserting the answer. A checklist the model can satisfy with vibes is not a\nchecklist: in a past session the \"focus lock engaged?\" item was answered with\n\"you confirmed focus looks fine at Z=45.2 µm\", which is not the same claim.\n\n| Check                  | Tool                                    | Pass condition                     |\n|------------------------|-----------------------------------------|------------------------------------|\n| Focus lock engaged     | get_focus_lock_state()                  | engaged == true                    |\n| Trigger line armed     | run_timelapse(laser_slot=N)             | trigger mode\u002Fsequence accepted     |\n| Blinking density       | find_features()                         | spot_density_per_um2 in [0.1, 1.0] |\n| No saturation          | snap_and_analyze()                      | saturated_fraction == 0            |\n| In focus               | run_autofocus() or snap_and_analyze()   | converged == true                  |\n| Pixel size known       | get_pixel_size() \u002F calibrate_stage_to_camera() | pixel_size_um > 0           |\n\nItems a tool CANNOT check (buffer, BFP bubbles, astigmatic lens, pre-bleach)\nmust be asked of the user explicitly and confirmed in their reply.\n\n---\n\n## Recommended acquisition protocol (step-by-step)\n\n0. Run the machine-checked checklist above; report each result to the user.\n1. Confirm sample is in photoswitching buffer (dSTORM) or correct imaging medium.\n2. Call get_system_state() to orient yourself.\n3. Call get_available_channels() to confirm the excitation channel.\n4. Set exposure: set_exposure(exposure_ms) or pass exposure_ms to run_timelapse.\n5. Snap a wide-field image for reference: snap_and_analyze().\n   - Check focus (Tenengrad metric; higher = sharper). If low, suggest run_autofocus.\n   - Check intensity. For dSTORM it should be high (all fluorophores ON).\n6. Remind the user to check the back focal plane (BFP) image for air bubbles in\n   the immersion oil before starting. Air bubbles appear as dark occlusions in the\n   BFP and will cause PSF distortions and poor localization. If bubbles are present,\n   clean the objective and replace the oil.\n7. If the microscope has a hardware focus lock (e.g., NIR laser + QPD), confirm it\n   is engaged before starting by calling get_focus_lock_state() — a sharp image is\n   NOT evidence the lock is on. This is critical for long acquisitions and 3D SMLM.\n   Note run_autofocus refuses to sweep while the lock is engaged; disengage with\n   set_focus_lock(false), focus, then re-engage.\n8. (dSTORM only) Ask the user to perform the pre-bleach step manually in\n   Micro-Manager or confirm they have already done so:\n   - Slow STORM: Start the laser at low power (~0.2 kW\u002Fcm²) and watch until the average image \n    intensity drops to half the initial value. Once this happens, bump the power up again and\n    wait again for intensity to again drop to half of the initial value. Ramp the power from\n    ~0.2 kW\u002Fcm² up to the user-defined power value (~6 kW\u002Fcm²) for the acquisiton in\n    ~5 of these steps. All the steps together should not take longer than 30 seconds - 2 minutes.\n   - Regular STORM: skip pre-bleach; proceed directly at ~20 kW\u002Fcm².\n9. (3D only) Confirm the astigmatic lens is inserted (3D mode active) and that\n   a PSF calibration file is available for the localization software.\n10. Confirm the number of frames with the user (default suggestions: slow STORM\n    80,000; regular STORM 40,000; unsure → 20,000).\n11. Ask for a save directory and dataset name.\n12. Start acquisition (pass laser_slot on an EMU rig so the trigger pre-flight\n    verifies the excitation will actually fire — a gated-off laser yields a\n    silently blank dataset):\n      run_timelapse(n_frames=\u003Cn>, interval_s=0, save_dir=\u003Cdir>,\n                    channel=\u003Cch>, exposure_ms=\u003Cms>, name=\u003Cname>,\n                    laser_slot=\u003Cslot from get_emu_laser_map>)\n13. After completion, offer to export to TIFF for analysis:\n      export_dataset_as_tiff(dataset_path=\u003Cpath>, output_path=\u003Ctiff_path>)\n\n---\n\n## Drift correction (critical)\n\nSample drift during long acquisitions (~30 min) is the most common artefact.\nWithout drift correction, the reconstructed image will appear blurry even if\nindividual localizations are precise.\n\nRecommended approaches (implemented in external software, not Microclaw):\n- Fiducial markers: add 40–100 nm gold or fluorescent beads to the sample\n  before mounting. They appear in every frame and allow sub-nm drift tracking.\n  Tell the user to add fiducials if they haven't already.\n- Cross-correlation drift correction: available in most localization software;\n  does not require fiducials but is less accurate.\n\nIf the user has a hardware focus lock (e.g., NIR laser + QPD system, Nikon Perfect\nFocus, Zeiss Definite Focus), check that it is active before starting acquisition.\nIn Micro-Manager this appears as a focus-stabilization device in the device list.\nExpected focus lock performance for a well-aligned system:\n  - Long-term axial drift: ≤200 nm\u002Fh (corrected by focus lock and post-processing).\n  - Medium-term instability (10 min): ≤5 nm peak-to-peak.\n  - Short-term vibrations: ≤5 nm peak-to-peak.\nLarger instabilities usually indicate air currents around the microscope; enclose\nthe setup if possible.\n\n---\n\n## Density monitoring (optional hook)\n\nFor long acquisitions it is useful to track per-frame blinking density to detect:\n  - Too many ON molecules (PSF overlap → poor localizations): reduce excitation\n    power or 405 nm activation.\n  - Too few ON molecules (sparse localizations per frame): increase 405 nm\n    activation power.\n\nObservation-only density logging is supported on `run_timelapse`: a user-authored\n`analyze_frame(image, metadata) -> HookResult | None` hook can measure and log each\nframe. The shipped `snr_observer` is a reviewed built-in example of observation-only\n`hooked_fixed_plan`: results do not gate the next exposure. It is not the callback shape to copy\nfor a user-authored hook.\n\nPredetermined writes use `hooked_fixed_plan` without an image-decision handoff:\nvalidation, settling and read-back precede the affected frame. Supply a bounded\n`hook_action_plan` under a `property_envelope`. A per-frame plan spanning more than\none frame requires distinct consecutive `int(k * interval_s * 1000.0)` deadlines\nthroughout its frame count. Equal truncated millisecond deadlines allow\nhardware-sequencing with no software between exposures and are refused at plan time.\n\n**Current capability boundary:** on a fixed `run_timelapse`, `analyze_frame` may\npropose image-driven `SetIlluminationPower` after the user explicitly authorizes an\n`illumination_envelope` once before the run; no prompt occurs from the callback thread.\nIt is power-only (not shutter control), bounded by a percent ceiling and a budget of\nincreasing writes, and has no automatic final restoration: the device stays at the\nlast accepted value. Fixed runs with this hardware control are refused at plan time\nif consecutive truncated millisecond deadlines match. Observation-only zero-interval\nbursts remain allowed.\n\nImage-driven `SetDeviceProperty` and `MoveNamedStage` are refused under a fixed\n`run_timelapse`; those actions must be in a predeclared `hook_action_plan`, and an\nimage-driven conditional stop is likewise refused on that fixed route.\n`run_adaptive_survey` is not a substitute for single-field STORM: it walks a planned\nposition list.\n\nFor a single-field adaptive time series, `max_frames` selects `adaptive_handoff`: each next exposure waits for analysis and guarded actions. The\nsaved hook returns exactly one `ContinueAcquisition` or `StopAcquisition` decision\nfor every image, and the parent publishes at most one successor frame. For example,\nafter reviewing and saving `density_stop_hook`:\n\n```python\nrun_timelapse(\n    hook_strategy=\"density_stop_hook\",\n    n_frames=None,\n    max_frames=80_000,\n    interval_s=0,\n    save_dir=\"storm\",\n    exposure_ms=100,\n)\n```\n\n`max_frames` is the authorized dose cap; the hook may stop earlier but cannot widen\nit. Use this route for image-driven `SetDeviceProperty` or `MoveNamedStage` proposals\ninside their explicit envelopes and for a conditional stop. Do not combine it with\n`hook_action_plan`, whose per-frame actions require a pre-built fixed event list.\n\n---\n\n## Post-processing (external software)\n\nMicroclaw produces an NDTiff dataset or a TIFF stack. The user must run\nlocalization fitting in one of these tools:\n\n| Software        | Platform    | Notes                                  |\n|-----------------|-------------|----------------------------------------|\n| ThunderSTORM    | FIJI plugin | Widely used, good for 2D dSTORM\u002FPALM  |\n| SMAP            | MATLAB\u002FGUI  | State-of-art MLE, 3D, PSF calibration |\n| DECODE          | Python\u002FGPU  | Deep-learning, very fast               |\n| Picasso         | Python\u002FGUI  | DNA-PAINT specialist tool              |\n| ZOLA-3D         | FIJI plugin | 3D PSF engineering                     |\n\nSuggest the appropriate tool based on the technique:\n- dSTORM 2D → ThunderSTORM or SMAP\n- dSTORM\u002FPALM 3D → SMAP or ZOLA-3D\n- DNA-PAINT → Picasso\n- High-throughput \u002F GPU → DECODE\n\n### SMAP filtering thresholds (recommended starting points for AF647 dSTORM)\nAfter localization fitting, filter out poor localizations before rendering:\n- Lateral localization precision (locprec): \u003C 20 nm\n- Relative log-likelihood (LLrel): > −1  (removes poorly-fitted PSFs)\n- PSF size (PSFxnm): \u003C 175 nm  (removes out-of-focus emitters, 2D data only)\n- Frames filter: remove early frames where density may be too high, and late\n  frames where signal is exhausted.\nAfter filtering, run drift correction (redundant cross-correlation in SMAP) and\nmerge localizations from consecutive frames that originate from the same\nblinking event (grouping).\n\n### Expected data quality metrics for AF647 dSTORM\nUse these to judge whether an acquisition is healthy:\n- Photon count per localization: ~6,000–8,000 (regular \u002F slow STORM respectively)\n- Background per pixel: ~100 photons\u002Fpixel\n- Mean on-time (average frames per blink event): 2–2.5 frames\n- Peak localization precision: 5 ± 2 nm lateral; ~8–10 nm axial (3D)\n\n### Biological validation benchmark: Nuclear Pore Complex (NPC)\nThe nuclear pore complex is the standard benchmark for SMLM performance because\nits geometry is well-characterised by cryo-EM:\n- Nup96 is present in 32 copies per NPC (16 cytoplasmic + 16 nucleoplasmic ring).\n- Each ring has 8 corners; each corner contains 2 Nup96 proteins.\n- Adjacent corners within a ring: ~12 nm apart; non-adjacent corners: ~42 nm apart.\n- Ring diameter: ~107 nm.\n- Axial separation between cytoplasmic and nucleoplasmic rings: ~50 nm\n  (expected value in SMAP z-scaling calibration: 49.3 nm).\n- Image NPCs closest to the coverslip (nuclear membrane areas that are flat and\n  parallel to the coverslip give the sharpest rings with most NPCs in the same focal\n  plane).\n- At 60% labelling efficiency (typical), most NPCs will display 6–8 visible corners.\n  Clearly circular rings with visible eightfold symmetry indicate good resolution.\n\n### Reference standard for PAINT \u002F DNA-PAINT: DNA origami rulers\nDNA origami nanostructures are the gold-standard reference sample for DNA-PAINT\nbecause they are chemically defined, commercially available (e.g., Massive\nPhotonics \"GATTA-PAINT\" series), and provide absolute distance calibration:\n- Docking strands are placed at prescribed positions with sub-nm stoichiometric\n  precision. Common ruler spacings: 20 nm, 40 nm, 80 nm, 160 nm.\n- Each docking-strand site produces independent binding events; the number of\n  distinct peaks confirms site occupancy and localisation precision.\n- **Localisation precision check**: fit each docking-site cluster with a 2-D\n  Gaussian; the σ of that fit is the experimental localisation precision (target\n  ≤ 5 nm for DNA-PAINT with Cy3B or ATTO 655 imager strands).\n- **Calibration**: measure the centre-to-centre distance between two sites and\n  compare to the design value to detect x\u002Fy pixel-size errors.\n- **Imager strand concentration**: 100 pM–10 nM, starting around 5 nM for a\n  12-site structure, in a Mg-based imaging buffer (5 mM Tris-HCl, 10 mM MgCl₂,\n  1 mM EDTA, 0.05% Tween 20, pH 8.0) with the PCA\u002FPCD\u002FTrolox oxygen-scavenging\n  system mixed in ≥1 h before imaging. Lower concentration reduces background but\n  increases τdark (time between binding events). Optimise for a τb \u002F τdark ratio\n  that keeps \u003C10% of sites occupied simultaneously. Recipes and the rationale are\n  in `load_skill(name=\"dna-paint\")`.\n- Origami passivation: BSA (1 mg\u002FmL) + Pluronic F-127 (0.05%) in the imaging\n  buffer reduces non-specific imager binding to the coverslip.\n- TIRF illumination is strongly preferred to minimise background from free imager\n  strands in solution.\n\n---\n\n## Common pitfalls and how to address them\n\n| Problem                         | Cause                          | Fix                                          |\n|---------------------------------|--------------------------------|----------------------------------------------|\n| Blurry super-resolution image   | Drift not corrected            | Use fiducial beads or software drift corr.   |\n| No blinking visible             | Pre-bleach not done \u002F bad buf  | Confirm pre-bleach step; check MEA buffer    |\n| Too many simultaneous emitters  | Excitation power too high      | Reduce laser power; reduce 405 nm activation |\n| Too few localizations           | Acquisition too short          | Increase n_frames; check buffer freshness    |\n| Artefactual clusters            | Multiple localisations\u002Fmolecule| Use merge-blinks filter in analysis software |\n| Low SNR                         | High background \u002F epi mode     | Switch to TIRF; check EM gain setting        |\n| PSF distorted \u002F asymmetric      | Air bubble in immersion oil    | Check BFP image; clean objective; replace oil|\n| Poor z-localization in 3D       | No PSF calibration \u002F lens out  | Confirm astigmatic lens in path; recalibrate |\n| Photon count lower than expected| Bad\u002Facidified imaging buffer   | Prepare fresh buffer; check buffer age       |\n| Low labelling efficiency        | Cell culture \u002F reagent issue   | Fresh cell cultures; repeat sample prep      |\n\n---\n\n## Key questions to ask the user before starting\n\n1. Which SMLM technique? (dSTORM \u002F PALM \u002F PAINT \u002F DNA-PAINT)\n   For DNA-PAINT, call `load_skill(name=\"dna-paint\")` before planning parameters.\n2. Which fluorophore and labelling strategy?\n3. Is the photoswitching buffer \u002F imaging medium in place? (for dSTORM)\n4. Which excitation channel and laser power will be used?\n5. Is TIRF or HILO mode available and configured? (preferred over epi for SNR)\n6. Is a hardware focus lock active?\n7. Are fiducial markers present for drift correction?\n8. 2D or 3D acquisition? If 3D: is the astigmatic lens inserted and calibrated?\n9. Single-color or multicolor? If multicolor: sequential or simultaneous (image splitter)?\n10. Which dSTORM regime: slow STORM (~100 ms \u002F 6 kW\u002Fcm² \u002F 80k frames) or\n    regular STORM (~30 ms \u002F 20 kW\u002Fcm² \u002F 40k frames)?\n11. Has the back focal plane been checked for air bubbles in the immersion oil?\n12. How many frames and what exposure time?\n13. Save directory for the raw data?\n","# Single-Molecule Localization Microscopy (SMLM) reference\n\nReturned by `load_skill(name=\"smlm\")`.\n\n## Sources\n\nCondensed from one reference paper:\n\n- **[Lelek2021]** — Lelek M, Gyparaki MT, Beliu G, Schueder F, Griffié J, Manley S,\n  Jungmann R, Sauer M, Lakadamyali M, Zimmer C. \"Single-molecule localization microscopy.\"\n  *Nat Rev Methods Primers.* 2021;1:39.\n  [doi:10.1038\u002Fs43586-021-00038-x](https:\u002F\u002Fdoi.org\u002F10.1038\u002Fs43586-021-00038-x) — the SMLM\n  primer this document is condensed from: technique variants, photophysics and blinking\n  kinetics, acquisition parameters, drift correction and the post-processing pipeline. It is\n  also the second source of `load_skill(name=\"dna-paint\")`, so the two documents agree where\n  they both cite it.\n\n## What SMLM is\n\nSMLM is a family of super-resolution techniques (PALM, STORM\u002FdSTORM, PAINT\u002FDNA-PAINT)\nthat achieve ~20–50 nm lateral resolution by imaging sparse, spatially isolated\nfluorophores frame-by-frame and fitting each PSF to extract sub-pixel (x, y)\ncoordinates. Thousands to tens of thousands of raw diffraction-limited frames are\ncollected and then processed by external localization software to build a\nsuper-resolution image from the accumulated localizations.\n\nMicroclaw's role is to:\n  1. Help the user set up the correct acquisition parameters.\n  2. Run the raw-frame stack with run_timelapse (interval_s=0 for no_requested_delay).\n  3. Export the dataset with export_dataset_as_tiff so external software can analyse it.\n  4. Optionally attach an observation-only hook for real-time density logging.\n\nMicroclaw does NOT perform localization fitting — that requires external software\nsuch as ThunderSTORM (FIJI plugin), SMAP, DECODE, or Picasso (see Software section).\n\n---\n\n## Technique variants\n\n### dSTORM (direct STORM) — most common for fixed cells\n- Fluorophore: photoswitchable synthetic dye (Alexa Fluor 647 or Cy5 recommended\n  for beginners). Requires a thiol-based photoswitching buffer (TRIS-buffered saline + 35 mM MEA\n  + enzymatic oxygen scavenger such as GLOX).\n- Two acquisition regimes — ask the user which they prefer:\n\n  A) Slow STORM (preferred — highest data quality):\n     - Pre-bleach: slowly reduce excitation power to ~0.2 kW\u002Fcm² and wait until\n       the overall signal intensity in the ROI is no longer decreasing (~1–2 min,\n       judged by eye on the live image).\n     - Acquisition: 100 ms exposure, ~6 kW\u002Fcm² excitation power.\n     - Frame count: ~80,000 frames.\n     - Expected AF647 yield: ~8,000 photons\u002Flocalization, localization\n       precision ~5 ± 2 nm lateral.\n\n  B) Regular STORM (faster, slightly reduced quality):\n     - No separate pre-bleach; begin acquisition immediately at high power.\n     - Acquisition: 30 ms exposure, ~20 kW\u002Fcm² excitation power.\n     - Frame count: ~40,000 frames.\n     - Expected AF647 yield: ~6,000 photons\u002Flocalization.\n\n- Optional 405 nm activation: the operator may pulse at low power when blinking\n  density drops too low during acquisition. The operator gradually increases the\n  pulse length and stops increasing at the maximum; if density is still dropping,\n  the acquisition is near complete. Microclaw does not automate this feedback loop.\n- Ask the user: channel name for main excitation, which STORM regime they want,\n  whether a 405 nm activation channel is available, and whether the\n  photoswitching buffer is in place.\n\n### PALM \u002F fPALM — for live cells or sparse labelling\n- Fluorophore: photoactivatable or photoconvertible fluorescent protein\n  (PA-GFP, PAmCherry, mEos family). No special buffer needed.\n- Pre-acquisition: brief low-power 405 nm pulse to activate a sparse subset;\n  image until bleached, then repeat.\n- Frame count is lower than dSTORM (typically 5,000–20,000) because each\n  molecule bleaches irreversibly after activation.\n- Ask the user: whether a 405 nm activation channel is configured and what\n  power the laser operates at.\n\n### PAINT \u002F DNA-PAINT — no photobleaching, unlimited reservoir\n- Fluorophore: transiently binding dye (e.g., Cy3B for PAINT; short imager\n  strands for DNA-PAINT). No photoswitching buffer needed.\n- ON-state lifetime (τb) and OFF-state lifetime (τd) are set by dye\u002FDNA\n  concentration and strand length, not laser power. Both are calculable:\n    - τb = 1\u002Fk_off, set by duplex length — a 9-bp duplex gives τb ≈ 500 ms, and\n      each added base pair raises τb by roughly 10× (each removed one lowers it\n      by roughly 10×). Match the camera exposure to τb.\n    - τd = 1\u002F(c_imager · k_on), with k_on ≈ 10⁶ M⁻¹s⁻¹ typical. At 10 nM,\n      τd ≈ 100 s; a site is visited at least once with ~98% probability after\n      t ≈ 4·τd, but useful images need multiple events per site (~33 min).\n- Typical frame counts: start 7,500; full datasets 10,000–100,000+, acquisition\n  can continue until sufficient sampling is achieved.\n- Imager concentration is the most consequential knob and it cuts both ways: too\n  low under-samples the structure, too high raises unbound-imager background AND\n  causes cross-talk localizations — two nearby sites bound at once, fitted as one\n  false spot between them.\n- Ask the user: imager strand concentration and identity, docking-strand target.\n- **Call `load_skill(name=\"dna-paint\")` for the full protocol** — buffer recipes,\n  the oxygen-scavenging system, strand design, sample prep, and the acquisition\n  procedure. Its numbers supersede the DNA-PAINT figures in this document.\n\n---\n\n## Acquisition parameters\n\n### Exposure time\n- Match the fluorophore ON-state lifetime: typically 10–100 ms.\n- For dSTORM (Alexa Fluor 647):\n    - Slow STORM regime: 100 ms.\n    - Regular STORM regime: 30 ms.\n- For PALM fluorescent proteins: 30–100 ms.\n- For DNA-PAINT: match τb — ~300 ms for the common 9-bp imager\u002Fdocking duplex\n  (τb ≈ 500 ms); 100–500 ms across usual duplex lengths. Longer τb allows more\n  photons per event. See `load_skill(name=\"dna-paint\")`.\n- Use: run_timelapse(exposure_ms=\u003Cvalue>, ...)\n\n### Frame interval\n- interval_s=0 means `no_requested_delay`; it permits time-axis batching,\n  subject to device support. Microclaw ships no rig-specific achieved-cadence measurement.\n- For per-frame hardware control, choose an interval whose consecutive\n  `int(k * interval_s * 1000.0)` deadlines differ throughout the frame count.\n  Any requested idle time adds delay when the engine reaches its deadline early;\n  it does not reduce the background accumulated during exposure.\n\n### Number of frames\n- Fixed-cell dSTORM:\n    - Slow STORM regime: ~80,000 frames. In a manually supervised acquisition,\n      the operator may stop when the 405 nm pulse length maxes out.\n    - Regular STORM regime: ~40,000 frames.\n    - Minimum for a small structure (e.g., centriole): ≥10,000 frames.\n- PALM: 5,000–20,000 frames.\n- DNA-PAINT: start at 7,500 frames; full datasets 10,000–100,000+, more is better.\n- If the user is unsure, start with 20,000 frames and check density.\n- Use: run_timelapse(n_frames=\u003Cvalue>, ...)\n\n### Channel selection\n- Always confirm the channel name before starting.\n  Use get_available_channels() then set_channel() to verify the active channel.\n- For dSTORM: the main excitation channel (e.g., \"TIRF-647\" or \"Cy5\").\n- Do NOT switch channels during SMLM acquisition unless doing sequential\n  multicolour imaging.\n\n### Illumination mode (TIRF vs. epi)\n- TIRF (total internal reflection fluorescence) reduces background and improves\n  SNR — strongly preferred for membrane-proximal targets (within ~200 nm of\n  the coverslip).\n- HILO (highly inclined) is a good alternative for targets slightly deeper\n  in the cell.\n- Wide-field (epi) is acceptable but will have higher background.\n- Ask the user which illumination mode their microscope is configured for.\n  In Micro-Manager this is usually a device property (e.g., \"IlluminationMode\"\n  or a TIRF motor angle). Use list_device_properties \u002F set_device_property to\n  adjust if needed.\n\n### 3D SMLM — astigmatic imaging\n- A cylindrical lens pair (astigmatic lens) placed in the emission path encodes the\n  z-position of each emitter via an asymmetric PSF: the PSF extends along x when the\n  molecule is above focus and along y when below.\n- The astigmatic lens is inserted\u002Fremoved without realigning the emission path.\n  In Micro-Manager this is typically a device property (e.g., a two-state device\n  that moves the lens in\u002Fout). Confirm with the user before starting.\n- z-range accessible: typically ±400 nm around the focal plane with good localization\n  precision. The calibration (see PSF calibration below) defines the useable z-range.\n- Achievable localization precision under ideal conditions: ~2 nm lateral, ~8 nm axial.\n- PSF calibration is required before 3D fitting: acquire a z-stack (e.g., −1 µm to\n  +1 µm in 20 nm steps) of sparse, well-separated fluorescent beads (~100 nm\n  TetraSpeck or similar). Calibration is performed in SMAP (or equivalent) and\n  produces a spline PSF model used for MLE fitting.\n- For 3D SMLM: ensure a hardware focus lock is active — axial drift over a long\n  acquisition will broaden the apparent z-distribution and cannot be fully corrected\n  in post-processing.\n- Ask the user: whether the astigmatic lens is in place and calibrated, and the\n  device property name used to toggle it.\n\n### Multicolor imaging\n- Sequential multicolor: acquire one channel at a time, switching excitation laser\n  and emission filter between rounds. Switching adds device moves and settling; prone to drift between\n  channels.\n- Simultaneous multicolor (preferred for co-localization): an image splitter\n  (dichroic + relay optics) splits the emission into two spectral bands and images\n  them side-by-side on a single camera chip. Both channels are captured in every\n  frame with no time delay.\n- Ratiometric dSTORM with far-red dyes (e.g., AF647 + CF680): two spectrally\n  overlapping far-red fluorophores are excited by the same laser and discriminated\n  by their intensity ratio in the two camera channels. This requires a calibrated\n  channel transformation (affine mapping from channel 1 pixel coordinates to\n  channel 2 coordinates).\n- For dual-channel 3D fitting, a global PSF model that covers both channels is\n  required (calibrated from the same bead stacks, fitting both channels jointly).\n- Ask the user: number of colors, labelling strategy, and whether the image splitter\n  is installed and aligned.\n\n### Objective and pixel size\n- Requires a high-NA objective (NA ≥ 1.4), typically 60× or 100× oil immersion.\n- Effective pixel size at the sample should be ~100–110 nm\n  (camera pixel \u002F total magnification). Calibrate by imaging a single bead and\n  moving the xy stage by known distances; do not rely on the nominal magnification.\n  Example: 6.5 µm camera pixel \u002F 61× total magnification ≈ 105 nm\u002Fpixel.\n- Pixel size too large → undersampling; too small → fewer molecules per FOV.\n\n---\n\n## Machine-checked pre-acquisition checklist\n\nEvery row here is answered by CALLING THE TOOL, not by inspecting an image and\nasserting the answer. A checklist the model can satisfy with vibes is not a\nchecklist: in a past session the \"focus lock engaged?\" item was answered with\n\"you confirmed focus looks fine at Z=45.2 µm\", which is not the same claim.\n\n| Check                  | Tool                                    | Pass condition                     |\n|------------------------|-----------------------------------------|------------------------------------|\n| Focus lock engaged     | get_focus_lock_state()                  | engaged == true                    |\n| Trigger line armed     | run_timelapse(laser_slot=N)             | trigger mode\u002Fsequence accepted     |\n| Blinking density       | find_features()                         | spot_density_per_um2 in [0.1, 1.0] |\n| No saturation          | snap_and_analyze()                      | saturated_fraction == 0            |\n| In focus               | run_autofocus() or snap_and_analyze()   | converged == true                  |\n| Pixel size known       | get_pixel_size() \u002F calibrate_stage_to_camera() | pixel_size_um > 0           |\n\nItems a tool CANNOT check (buffer, BFP bubbles, astigmatic lens, pre-bleach)\nmust be asked of the user explicitly and confirmed in their reply.\n\n---\n\n## Recommended acquisition protocol (step-by-step)\n\n0. Run the machine-checked checklist above; report each result to the user.\n1. Confirm sample is in photoswitching buffer (dSTORM) or correct imaging medium.\n2. Call get_system_state() to orient yourself.\n3. Call get_available_channels() to confirm the excitation channel.\n4. Set exposure: set_exposure(exposure_ms) or pass exposure_ms to run_timelapse.\n5. Snap a wide-field image for reference: snap_and_analyze().\n   - Check focus (Tenengrad metric; higher = sharper). If low, suggest run_autofocus.\n   - Check intensity. For dSTORM it should be high (all fluorophores ON).\n6. Remind the user to check the back focal plane (BFP) image for air bubbles in\n   the immersion oil before starting. Air bubbles appear as dark occlusions in the\n   BFP and will cause PSF distortions and poor localization. If bubbles are present,\n   clean the objective and replace the oil.\n7. If the microscope has a hardware focus lock (e.g., NIR laser + QPD), confirm it\n   is engaged before starting by calling get_focus_lock_state() — a sharp image is\n   NOT evidence the lock is on. This is critical for long acquisitions and 3D SMLM.\n   Note run_autofocus refuses to sweep while the lock is engaged; disengage with\n   set_focus_lock(false), focus, then re-engage.\n8. (dSTORM only) Ask the user to perform the pre-bleach step manually in\n   Micro-Manager or confirm they have already done so:\n   - Slow STORM: Start the laser at low power (~0.2 kW\u002Fcm²) and watch until the average image \n    intensity drops to half the initial value. Once this happens, bump the power up again and\n    wait again for intensity to again drop to half of the initial value. Ramp the power from\n    ~0.2 kW\u002Fcm² up to the user-defined power value (~6 kW\u002Fcm²) for the acquisiton in\n    ~5 of these steps. All the steps together should not take longer than 30 seconds - 2 minutes.\n   - Regular STORM: skip pre-bleach; proceed directly at ~20 kW\u002Fcm².\n9. (3D only) Confirm the astigmatic lens is inserted (3D mode active) and that\n   a PSF calibration file is available for the localization software.\n10. Confirm the number of frames with the user (default suggestions: slow STORM\n    80,000; regular STORM 40,000; unsure → 20,000).\n11. Ask for a save directory and dataset name.\n12. Start acquisition (pass laser_slot on an EMU rig so the trigger pre-flight\n    verifies the excitation will actually fire — a gated-off laser yields a\n    silently blank dataset):\n      run_timelapse(n_frames=\u003Cn>, interval_s=0, save_dir=\u003Cdir>,\n                    channel=\u003Cch>, exposure_ms=\u003Cms>, name=\u003Cname>,\n                    laser_slot=\u003Cslot from get_emu_laser_map>)\n13. After completion, offer to export to TIFF for analysis:\n      export_dataset_as_tiff(dataset_path=\u003Cpath>, output_path=\u003Ctiff_path>)\n\n---\n\n## Drift correction (critical)\n\nSample drift during long acquisitions (~30 min) is the most common artefact.\nWithout drift correction, the reconstructed image will appear blurry even if\nindividual localizations are precise.\n\nRecommended approaches (implemented in external software, not Microclaw):\n- Fiducial markers: add 40–100 nm gold or fluorescent beads to the sample\n  before mounting. They appear in every frame and allow sub-nm drift tracking.\n  Tell the user to add fiducials if they haven't already.\n- Cross-correlation drift correction: available in most localization software;\n  does not require fiducials but is less accurate.\n\nIf the user has a hardware focus lock (e.g., NIR laser + QPD system, Nikon Perfect\nFocus, Zeiss Definite Focus), check that it is active before starting acquisition.\nIn Micro-Manager this appears as a focus-stabilization device in the device list.\nExpected focus lock performance for a well-aligned system:\n  - Long-term axial drift: ≤200 nm\u002Fh (corrected by focus lock and post-processing).\n  - Medium-term instability (10 min): ≤5 nm peak-to-peak.\n  - Short-term vibrations: ≤5 nm peak-to-peak.\nLarger instabilities usually indicate air currents around the microscope; enclose\nthe setup if possible.\n\n---\n\n## Density monitoring (optional hook)\n\nFor long acquisitions it is useful to track per-frame blinking density to detect:\n  - Too many ON molecules (PSF overlap → poor localizations): reduce excitation\n    power or 405 nm activation.\n  - Too few ON molecules (sparse localizations per frame): increase 405 nm\n    activation power.\n\nObservation-only density logging is supported on `run_timelapse`: a user-authored\n`analyze_frame(image, metadata) -> HookResult | None` hook can measure and log each\nframe. The shipped `snr_observer` is a reviewed built-in example of observation-only\n`hooked_fixed_plan`: results do not gate the next exposure. It is not the callback shape to copy\nfor a user-authored hook.\n\nPredetermined writes use `hooked_fixed_plan` without an image-decision handoff:\nvalidation, settling and read-back precede the affected frame. Supply a bounded\n`hook_action_plan` under a `property_envelope`. A per-frame plan spanning more than\none frame requires distinct consecutive `int(k * interval_s * 1000.0)` deadlines\nthroughout its frame count. Equal truncated millisecond deadlines allow\nhardware-sequencing with no software between exposures and are refused at plan time.\n\n**Current capability boundary:** on a fixed `run_timelapse`, `analyze_frame` may\npropose image-driven `SetIlluminationPower` after the user explicitly authorizes an\n`illumination_envelope` once before the run; no prompt occurs from the callback thread.\nIt is power-only (not shutter control), bounded by a percent ceiling and a budget of\nincreasing writes, and has no automatic final restoration: the device stays at the\nlast accepted value. Fixed runs with this hardware control are refused at plan time\nif consecutive truncated millisecond deadlines match. Observation-only zero-interval\nbursts remain allowed.\n\nImage-driven `SetDeviceProperty` and `MoveNamedStage` are refused under a fixed\n`run_timelapse`; those actions must be in a predeclared `hook_action_plan`, and an\nimage-driven conditional stop is likewise refused on that fixed route.\n`run_adaptive_survey` is not a substitute for single-field STORM: it walks a planned\nposition list.\n\nFor a single-field adaptive time series, `max_frames` selects `adaptive_handoff`: each next exposure waits for analysis and guarded actions. The\nsaved hook returns exactly one `ContinueAcquisition` or `StopAcquisition` decision\nfor every image, and the parent publishes at most one successor frame. For example,\nafter reviewing and saving `density_stop_hook`:\n\n```python\nrun_timelapse(\n    hook_strategy=\"density_stop_hook\",\n    n_frames=None,\n    max_frames=80_000,\n    interval_s=0,\n    save_dir=\"storm\",\n    exposure_ms=100,\n)\n```\n\n`max_frames` is the authorized dose cap; the hook may stop earlier but cannot widen\nit. Use this route for image-driven `SetDeviceProperty` or `MoveNamedStage` proposals\ninside their explicit envelopes and for a conditional stop. Do not combine it with\n`hook_action_plan`, whose per-frame actions require a pre-built fixed event list.\n\n---\n\n## Post-processing (external software)\n\nMicroclaw produces an NDTiff dataset or a TIFF stack. The user must run\nlocalization fitting in one of these tools:\n\n| Software        | Platform    | Notes                                  |\n|-----------------|-------------|----------------------------------------|\n| ThunderSTORM    | FIJI plugin | Widely used, good for 2D dSTORM\u002FPALM  |\n| SMAP            | MATLAB\u002FGUI  | State-of-art MLE, 3D, PSF calibration |\n| DECODE          | Python\u002FGPU  | Deep-learning, very fast               |\n| Picasso         | Python\u002FGUI  | DNA-PAINT specialist tool              |\n| ZOLA-3D         | FIJI plugin | 3D PSF engineering                     |\n\nSuggest the appropriate tool based on the technique:\n- dSTORM 2D → ThunderSTORM or SMAP\n- dSTORM\u002FPALM 3D → SMAP or ZOLA-3D\n- DNA-PAINT → Picasso\n- High-throughput \u002F GPU → DECODE\n\n### SMAP filtering thresholds (recommended starting points for AF647 dSTORM)\nAfter localization fitting, filter out poor localizations before rendering:\n- Lateral localization precision (locprec): \u003C 20 nm\n- Relative log-likelihood (LLrel): > −1  (removes poorly-fitted PSFs)\n- PSF size (PSFxnm): \u003C 175 nm  (removes out-of-focus emitters, 2D data only)\n- Frames filter: remove early frames where density may be too high, and late\n  frames where signal is exhausted.\nAfter filtering, run drift correction (redundant cross-correlation in SMAP) and\nmerge localizations from consecutive frames that originate from the same\nblinking event (grouping).\n\n### Expected data quality metrics for AF647 dSTORM\nUse these to judge whether an acquisition is healthy:\n- Photon count per localization: ~6,000–8,000 (regular \u002F slow STORM respectively)\n- Background per pixel: ~100 photons\u002Fpixel\n- Mean on-time (average frames per blink event): 2–2.5 frames\n- Peak localization precision: 5 ± 2 nm lateral; ~8–10 nm axial (3D)\n\n### Biological validation benchmark: Nuclear Pore Complex (NPC)\nThe nuclear pore complex is the standard benchmark for SMLM performance because\nits geometry is well-characterised by cryo-EM:\n- Nup96 is present in 32 copies per NPC (16 cytoplasmic + 16 nucleoplasmic ring).\n- Each ring has 8 corners; each corner contains 2 Nup96 proteins.\n- Adjacent corners within a ring: ~12 nm apart; non-adjacent corners: ~42 nm apart.\n- Ring diameter: ~107 nm.\n- Axial separation between cytoplasmic and nucleoplasmic rings: ~50 nm\n  (expected value in SMAP z-scaling calibration: 49.3 nm).\n- Image NPCs closest to the coverslip (nuclear membrane areas that are flat and\n  parallel to the coverslip give the sharpest rings with most NPCs in the same focal\n  plane).\n- At 60% labelling efficiency (typical), most NPCs will display 6–8 visible corners.\n  Clearly circular rings with visible eightfold symmetry indicate good resolution.\n\n### Reference standard for PAINT \u002F DNA-PAINT: DNA origami rulers\nDNA origami nanostructures are the gold-standard reference sample for DNA-PAINT\nbecause they are chemically defined, commercially available (e.g., Massive\nPhotonics \"GATTA-PAINT\" series), and provide absolute distance calibration:\n- Docking strands are placed at prescribed positions with sub-nm stoichiometric\n  precision. Common ruler spacings: 20 nm, 40 nm, 80 nm, 160 nm.\n- Each docking-strand site produces independent binding events; the number of\n  distinct peaks confirms site occupancy and localisation precision.\n- **Localisation precision check**: fit each docking-site cluster with a 2-D\n  Gaussian; the σ of that fit is the experimental localisation precision (target\n  ≤ 5 nm for DNA-PAINT with Cy3B or ATTO 655 imager strands).\n- **Calibration**: measure the centre-to-centre distance between two sites and\n  compare to the design value to detect x\u002Fy pixel-size errors.\n- **Imager strand concentration**: 100 pM–10 nM, starting around 5 nM for a\n  12-site structure, in a Mg-based imaging buffer (5 mM Tris-HCl, 10 mM MgCl₂,\n  1 mM EDTA, 0.05% Tween 20, pH 8.0) with the PCA\u002FPCD\u002FTrolox oxygen-scavenging\n  system mixed in ≥1 h before imaging. Lower concentration reduces background but\n  increases τdark (time between binding events). Optimise for a τb \u002F τdark ratio\n  that keeps \u003C10% of sites occupied simultaneously. Recipes and the rationale are\n  in `load_skill(name=\"dna-paint\")`.\n- Origami passivation: BSA (1 mg\u002FmL) + Pluronic F-127 (0.05%) in the imaging\n  buffer reduces non-specific imager binding to the coverslip.\n- TIRF illumination is strongly preferred to minimise background from free imager\n  strands in solution.\n\n---\n\n## Common pitfalls and how to address them\n\n| Problem                         | Cause                          | Fix                                          |\n|---------------------------------|--------------------------------|----------------------------------------------|\n| Blurry super-resolution image   | Drift not corrected            | Use fiducial beads or software drift corr.   |\n| No blinking visible             | Pre-bleach not done \u002F bad buf  | Confirm pre-bleach step; check MEA buffer    |\n| Too many simultaneous emitters  | Excitation power too high      | Reduce laser power; reduce 405 nm activation |\n| Too few localizations           | Acquisition too short          | Increase n_frames; check buffer freshness    |\n| Artefactual clusters            | Multiple localisations\u002Fmolecule| Use merge-blinks filter in analysis software |\n| Low SNR                         | High background \u002F epi mode     | Switch to TIRF; check EM gain setting        |\n| PSF distorted \u002F asymmetric      | Air bubble in immersion oil    | Check BFP image; clean objective; replace oil|\n| Poor z-localization in 3D       | No PSF calibration \u002F lens out  | Confirm astigmatic lens in path; recalibrate |\n| Photon count lower than expected| Bad\u002Facidified imaging buffer   | Prepare fresh buffer; check buffer age       |\n| Low labelling efficiency        | Cell culture \u002F reagent issue   | Fresh cell cultures; repeat sample prep      |\n\n---\n\n## Key questions to ask the user before starting\n\n1. Which SMLM technique? (dSTORM \u002F PALM \u002F PAINT \u002F DNA-PAINT)\n   For DNA-PAINT, call `load_skill(name=\"dna-paint\")` before planning parameters.\n2. Which fluorophore and labelling strategy?\n3. Is the photoswitching buffer \u002F imaging medium in place? (for dSTORM)\n4. Which excitation channel and laser power will be used?\n5. Is TIRF or HILO mode available and configured? (preferred over epi for SNR)\n6. Is a hardware focus lock active?\n7. Are fiducial markers present for drift correction?\n8. 2D or 3D acquisition? If 3D: is the astigmatic lens inserted and calibrated?\n9. Single-color or multicolor? If multicolor: sequential or simultaneous (image splitter)?\n10. Which dSTORM regime: slow STORM (~100 ms \u002F 6 kW\u002Fcm² \u002F 80k frames) or\n    regular STORM (~30 ms \u002F 20 kW\u002Fcm² \u002F 40k frames)?\n11. Has the back focal plane been checked for air bubbles in the immersion oil?\n12. How many frames and what exposure time?\n13. Save directory for the raw data?\n",{"name":5,"description":7},"main","bb3e123c0e5ce6b52cb0e1a27d5e52bce5f3b045","microclaw\u002Fskills\u002Fsmlm",1,"https:\u002F\u002Fgithub.com\u002FMicro-Claw\u002Fmicroclaw","https:\u002F\u002Fgithub.com\u002FMicro-Claw","2026-10-20 00:35:52",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Micro-Claw\u002Fmicroclaw --skill smlm",{"tool":37,"command":38},"bunx","bunx skills add Micro-Claw\u002Fmicroclaw --skill smlm",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Micro-Claw\u002Fmicroclaw --skill smlm","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMicro-Claw\u002Fmicroclaw\u002Fblob\u002Fmain\u002Fmicroclaw\u002Fskills\u002Fsmlm\u002FSKILL.md",true,[],[46,53,59,65,71,77],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M72WAR49VE6T3ENRRZ523X76","extension-example","Exercise extension-dependent skill loading.","https:\u002F\u002Fgithub.com\u002FMicro-Claw\u002Fmicroclaw\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fextension-example\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M72WAPVCEKCRHRP3TNBCFNGF","weather","https:\u002F\u002Fgithub.com\u002FMicro-Claw\u002Fmicroclaw\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill_packages\u002Fweather\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M72WANVZ372X54DH6P9AVXR4","metrics","https:\u002F\u002Fgithub.com\u002FMicro-Claw\u002Fmicroclaw\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill_packages\u002Fmetrics\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M72WAM0BVCPRGQJ3QYZZYX7X","markdown","https:\u002F\u002Fgithub.com\u002FMicro-Claw\u002Fmicroclaw\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill_packages\u002Fmarkdown\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M72WAJZAX9VVQA61FVPN5XVC","executable","https:\u002F\u002Fgithub.com\u002FMicro-Claw\u002Fmicroclaw\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill_packages\u002Fexecutable\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M72WAH1XNYBSZFESQH6BTCJ2","conformance","https:\u002F\u002Fgithub.com\u002FMicro-Claw\u002Fmicroclaw\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill_packages\u002Fconformance\u002FSKILL.md",[],[]]