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: Chains and batch runs over many files
An experiment is many cells, and each is analysed the same way.
A chain is plugins in order, with their settings, that runs as one plugin. A batch runs a chain over many files, and writes what each one gave.
spoken: Every cell should be analysed the same way. A chain puts plugins in order; a batch runs it over many files.
2. Plus, at the top of the Analysis tab, adds a plugin; its a new chain button starts an empty chain.
3. Add, in the build line, puts a plugin in, from the same tree as the tabs.
4. Here: drift correction, then Localization Statistics. Each step is a section; the tick in its title turns it off without removing it.
5. Opened, a step shows that plugin's own settings. A right click on its title moves, renames or removes it.
6. Run it on the open file first, to see that it does what it should.
7. It ran as one plugin: one undo step, and one entry in the history with every step and its settings.
8. The menu in the chain's title bar saves it as a file. Saved, it is a plugin like any other, under Analysis, Chains.
9. Plugins, Batch opens the batch window.
10. Add the data: files, or whole folders. On a Mac Add takes both; its arrow selects several folders at once.
11. A folder stays a folder, and shows the data sets in it. Untick one to leave it out; the filter narrows the folder by name.
12. Choose the chain that was just saved. It can be changed here too, without changing the saved one.
13. Where to write, and what: the processed tables, and the figures as pictures.
14. First file only tries the chain on one file before the rest.
15. Run saves the job as a file, and runs it in a process of its own: a crash costs the batch, never the window.
16. Each file is loaded, run and saved in turn. The status says which are done; the log below says what each step did.
17. card: What is written
A folder per file, with its processed table, its figures and every number each step gave; and one summary with a row per file.
spoken: A folder per file, with its table, figures and numbers, and one summary with a row per file.
18. Run again, and the files already done with the same settings are skipped. Change a setting, and those files are redone.
19. card: Without the window
The job is a small text file. smappy-batch run runs it on a server, with no window at all.
Chains and jobs are plain text on purpose: an AI assistant can write one from a description of the analysis.
spoken: The job is a text file: it runs without a window, and an AI assistant can write one for you.
20. card: What to remember
- +, a new chain in a tab: add steps, set them, run once, save.
- Plugins, Batch: files, a chain, an output folder, Run.
- A folder per file, and summary.csv over all of them.
- Running again redoes only what changed.
spoken: That is chains and batch runs: build it once, run it on every file, and keep the record.