snakemake
3.7.3. snakemake#
Snakemake is a workflow management framework designed for uses in research, with extensive support for environment management and remote execution. It features a very simple Python-based syntax and accommodates shell commands and external scripts in multiple programming languages with minimal adaptations. A full guide can be found elsewhere.
Let us reproduce the full Belle II workflow that we dicussed for b2luigi.
Again, we submit four skims (two for B mesons and two for quark-antiquark continuum) to the grid, which are each reconstructed in three batches on the KEKcc batch system. The reconstructed batches are merged and finally we fill some histograms in the offline analysis.
The directed acyclic graph (DAG) looks like this:
![../../_images/dag.png](../../_images/dag.png)
Now, let us look at the source code step by step:
Stuck? We can help!
Improving things!
Quick feedback!
Author of this lesson
Caspar Schmitt