Instructor notes¶
Schedule, Day 2 (16 December)¶
| Time | Block | What happens | Page |
|---|---|---|---|
| 10:00 | Welcome | 5 min | 0. Setup |
| 10:05 | Episode 1: your own tables, the Project Builder (browser), Hands-on 1 (10 min) | Source and project, two collections that scan both seasons, preview, create; on the project page Add join on individual_id; a figure on the joined table |
1. Your own tables, no template |
| 10:25 | The command line (10 min) | CLI.yaml, depictio config check, depictio ingest |
0. Setup |
| 10:35 | Episode 2: an nf-core run from the terminal, Hands-on 2 (15 min) | depictio catalog info, then depictio ingest on a viralrecon run, dry run first |
2. An nf-core run from the terminal |
| 11:00 | Break | 10 min | |
| 11:10 | Episode 3: work on your dashboard, together (browser), Hands-on 3 (15 min) | On the learner's own nf-core/viralrecon dashboard from episode 2: comment and annotate, edit and compare versions, share the project, export Dashboard only. Bonus: Metadata mode on their Day 1 ampliseq copy | 3. Work on your dashboard, together |
| 11:35 | Wrap-up | The Nextflow end-of-run demo | Going further |
| 11:45 | Questions | 15 min |
The three older episodes, a project file by hand, a new season and a dashboard as code, are now under Going further: they are not timed.
A server for this day only¶
Every learner downloads a CLI.yaml from their account. That file carries the access key of the server's object storage: the CLI writes the tables there itself. On a shared server, every learner can then read and change everything in that storage.
Run Day 2 on a server set up for it, and delete it afterwards:
| What | Why |
|---|---|
| Depictio 1.24.0, with its own object storage, empty at the start | Nothing else is reachable with the storage key |
| The API and the storage endpoint reachable from the learners' laptops | The CLI talks to both |
| One account per learner, allowed to create projects, plus a few spares; not single-user or public mode | Projects are created from the command line; in those modes only the admin can download a CLI.yaml |
| Learners set their own password at the first sign-in | The accounts are new on this server; until the password is changed, the server refuses the CLI too (Change your password first.) |
| Storage keys rotated just before the session | Keys from a test run do not work on the day |
| Server and storage deleted after the session | The keys handed out stop mattering |
Tell learners at the start that the server and everything on it are deleted after the session.
Version pins
The pins read ==1.24.0, the exact version of the server: learners check that depictio --version prints it. If the server is upgraded, even to a patch release, change every pin and that line of setup.md. A 1.21 CLI cannot read the CLI.yaml of a 1.22.0 to 1.22.2 server: every command after depictio --version fails with s3_storage.browser_access: Extra inputs are not permitted. Later servers leave that setting out of the file, and later CLIs skip keys they do not know with a warning, but the same version on both sides is the only setup the lesson was rehearsed with. The pins are in Setup (the uv and pip install lines, and the expected depictio --version), in Going further (the [local] install, with uv and pip), and in this lesson's Troubleshooting (the MultiQC row).
The penguins folder for the Project Builder¶
Episode 1 reads a folder in a bucket, not files from a laptop. Before the day, upload the two season folders of penguins-workshop.zip (seasons/season_2007/ and seasons/season_2008/, two CSV files each) to a bucket the server can reach, as s3://<workshop-bucket>/penguins/, and announce the location in the chat. If the bucket is private, give the endpoint, the access key and the secret too: the form asks for them and Test connection checks them. Replace the screenshot of step 1 on the episode page (it shows a local test endpoint) once the location is decided.
The learner page says the location is in the chat: paste it there at the start of the hands-on. Tested on 1.24.0: the builder ingests both collections in about 4 s; Add join previews 223 rows → joined: 223 rows · 12 columns and creates joined_physical_features_demographic_data in a few seconds. On 1.24.0 the builder's review step still says joins go through the YAML and Download YAML gives a template (template: block, {DATA_ROOT}): both are fixed in 1.24.1 (PR #1493). If the server is still on 1.24.0, tell the room to use Add join on the project page.
For episode 3, every learner works on the nf-core/viralrecon project they ingested in episode 2: they own it. A learner whose ingestion failed duplicates the instructor's viralrecon dashboard instead. The exports (DEPICTIO_STATIC_EXPORT_ENABLED=true) and viewers' comments (DEPICTIO_COMMENTS_VIEWERS_CAN_COMMENT=true) must be on, as on Day 1's server.
Files learners download¶
All are linked from the episode pages:
| Episode | File |
|---|---|
| Going further, and episode 1 as a local copy | penguins-workshop.zip, 6 KB: penguins-1.yaml (a project file by hand), penguins.yaml (a new season), starter.yaml, seasons/season_2007/, seasons/season_2008/ |
| 2 | viralrecon.zip, 1.3 MB: the part of an nf-core/viralrecon 3.0.0 run (test profile, 3 samples) that the template reads, in viralrecon/run_1/ |
Known behaviours¶
- Episode 2 needs
--var GROUP_COL=habitat: with the run's raw metadata the CLI picksname, and the ingestion stops atma_canonical. - The CLI keeps the two optional SIDLE collections, empty: 25 data collections and 21 links, against 23 and 19 on Day 1.
dashboard validatechecks card and filter columns only with--server; columns infigure_paramsare never checked.dashboard importmatches by title: a new title makes a new dashboard,--overwriteupdates one.
Running an episode¶
- Before: run the episode's first command on the shared screen, with a learner account.
- During: learners signal done or stuck in the chat. A helper answers with a link to the step; errors are easiest to read when the learner pastes the last lines of the output.
- After: go through the challenges' solutions on the shared screen.
Checks before the day¶
- With a fresh learner account and a fresh Python environment: Setup, then each episode as written, checking each solution.
depictio config checkfrom a laptop on the EMBL network and from one outside it.- Episodes 1 and 2 with many accounts at once: every learner sends the same files.