The words of this tutorial, step by step. The text lives in src/smappy/tutorial/topics/; the directions it follows are in src/smappy/tutorial/STYLE.md.
1. card: Simulating data: scenes, blinking and camera frames
Data whose truth is known: to learn the program, to choose settings, and to test a fit.
One model gives localizations, or the camera frames to fit.
spoken: Simulated data has a known truth: to try the program, to choose settings, and to check a fit.
2. Simulate is in the File tab. A preset is a whole scene to start from; your own are saved beside the shipped ones.
3. Nuclear pores: the preset fills every setting and puts the few that matter most at the top.
4. Not every copy of the protein carries a dye: change the labelling efficiency here, and the preset says it was modified.
5. The scene is made of components: here the pores. A background, beads or a second colour are added with +, or saved for later.
6. Each component has its structure: a built-in, a file of your own, labels spread evenly, or beads.
7. card: A structure file
Label positions, or lines, circles, areas and images filled at a density; and how many copies, placed and turned at random.elements:
- points: [[0, 0, 0], [12, 5, 0]]
- line: [[0, 0, 0], [1000, 0, 0]]
density: 0.05
- circle: 50
density: 0.2
copies:
density: 2
rotation: random
spoken: A structure file lists label positions, or shapes filled at a density, and how many copies to place.
8. Blinking in the numbers a dye is known by: how long it is on, how often it comes back, and its photons per blink.
9. The off time follows from the number of blinks, and switching happens anywhere within a frame, as in a real movie.
10. Run, and the pores appear: eight corners each, some missing, as the labelling left them.
11. Two molecules on at once within a PSF cannot be told apart: they are removed, or averaged into one, as a fitter would see them.
12. Camera frames instead: the same molecules on a camera, with shot and read noise. They are saved as a recipe, not as a movie.
13. The recipe is a few lines: the settings and the seed. The frames are made as a fitter reads them.
14. Fit this writes the recipe from the settings as they are and gives it to a fitter as its file.
15. The Localize tab opens on the fitter, with the recipe as its file.
16. The camera comes from the simulation: nothing to type in.
17. Run.
18. Compare to ground truth is not on this tab at first: the + at its top finds any plugin and pins it here.
19. Compare to ground truth works out where every spot really was and pairs them with the localizations, frame by frame.
20. Found, false and missed, and the Jaccard index that sums them up. Crowded spots and dim slivers cost detections.
21. With only the isolated spots, nearly all are found.
22. How many were found, by their photons: the dim ones are the hardest.
23. The real error against the precision the table reports. On each other: the precision can be trusted.
24. Each error over its own precision: a unit Gaussian when the fit is honest.
25. card: What to remember
- Presets: a whole scene, its key parameters at the top; your own saved beside them.
- Components: structures, a background, beads, a second colour, each with its own labelling and blinking.
- Labelling and blinking: efficiency, on time, blinks and photons, in the terms a dye is known by.
- Camera frames: a recipe the fitter opens, camera included.
- Compare to ground truth: what was found, and whether the precision is honest.
spoken: That is simulation: a known truth, to learn on and to test against.