Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions run_snakemake.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
#!/bin/sh
#!/usr/bin/env bash

# Snakemake does not support importing and orchestrating multiple Snakefiles
# in a way that respects the origin directory.
# Instead, we provide a shell script.
# We use some error-catching boilerplate from https://sharats.me/posts/shell-script-best-practices/.

# Strict settings
set -o errexit
set -o nounset

# Forcibly use the current CWD
cd "$(dirname "$0")"

main() {
uv tool run snakemake --cores 1 -d datasets/yeast-osmotic-stress -s datasets/yeast-osmotic-stress/Snakefile
uv tool run snakemake --cores 1 -d datasets/hiv -s datasets/hiv/Snakefile
}

uv tool run snakemake --cores 1 -d datasets/rn-muscle-skeletal -s datasets/rn-muscle-skeletal/Snakefile
uv tool run snakemake --cores 1 -d datasets/yeast-osmotic-stress -s datasets/yeast-osmotic-stress/Snakefile
uv tool run snakemake --cores 1 -d datasets/synthetic-data -s datasets/synthetic-data/Snakefile
uv tool run snakemake --cores 1 -d datasets/hiv -s datasets/hiv/Snakefile
main "$@"
Loading