List of exercises

Full list

This is a list of all exercises and solutions in this lesson, mainly as a reference for helpers and instructors. This list is automatically generated from all of the other pages in the lesson. Any single teaching event will probably cover only a subset of these, depending on their interests.

Parallelize using scripting

In parallelization/parallelize_using_script.md:

Parallel-1: Add the metrics as a parameter to the submission

Let’s assume that we noticed, that running all metrics still took too long for our purpose, and we also want to parallelize that part. You will need to update the train_and_plot.py script, the submission script and the sbatch script.

In parallelization/parallelize_using_script.md:

Parallelize using Slurm Array jobs

In parallelization/array_jobs.md:

Parallel-2: Create a slurm script and run it.

Let’s assume, that we want to build the same job, that we had with the script submission but we want to use an array job instead of a submission script.

To do this, we need to update the slurm script to use an array instead of an input argument.

Create this submission script and run it on your cluster

In parallelization/array_jobs.md:

Other materials

There is an optional exercise with Snakemake from the CodeRefinery lessons materials.