Episodes
Replace these sample episodes with your own tutorial narrative.
Episode 1
Getting Started: Rules, Targets, and the DAG
Snakemake is a Python-based workflow management system for building reproducible and scalable data analysis pipelines Mölder et al., 2021. In this episode, we build a small event-selection workflow and use it to …
Open pageEpisode 2
Scaling with Wildcards for Parallel Processing
In particle physics, we rarely process just one file. A dataset is usually split across many files, we run the same selection on each file, and then we gather the results into a final summary or plot. Snakemake can run …
Open pageEpisode 3
Dynamic File Discovery with Checkpoints
In the previous episode, we listed the datasets and chunk identifiers in advance. That works well when the workflow already knows what files it should process. Sometimes, however, the file list is only known after an …
Open pageEpisode 4
Containers
In particle physics, we often need software that is awkward to install or keep consistent across different machines. One step may need a modern Python stack, another may need CMSSW, and a third may depend on a specific …
Open pageEpisode 5
Running on HTCondor
After a workflow runs locally, the next step is often to submit it to an HTCondor cluster. The main idea is simple: the workflow logic should stay the same. In most cases, you should not rewrite rules for HTCondor. …
Open pageEpisode 6
Bonus: Visualising the Workflow
Getting the Big Picture As your analysis grows from 2 rules to 20, and from 3 samples to 300, it becomes impossible to keep the entire workflow in your head. Snakemake provides built-in tools to “draw” your analysis for …
Open page