diff --git a/docs/execution.md b/docs/execution.md new file mode 100644 index 0000000..d742058 --- /dev/null +++ b/docs/execution.md @@ -0,0 +1,111 @@ +**weave** is capable of automatically distributing its pipeline jobs across a slurm cluster. The context for it's initial execution can be varied as well. + +The context is also centrally related to the configuration and setup of a particular cluster. Right now weave is configured to work with NIH clusters **skyline**, **biowulf**, and **bigsky**. + + +Typical contexts of execution include: + +# srun (real time execution) (non-interactive) + +The **weave** pipeline can be triggered from a head node in a non-interactive fashion: + +## Bigsky/Skyline + +!!! Note + Dependency files for skyline and bigsky differ + Bigsky: `/gs1/RTS/OpenOmics/bin/dependencies.sh` + Skyline: `/data/openomics/bin/dependencies.sh` + +```bash +source ${dependencies} +srun --export=ALL "weave run [keyword args] ${run_id}" +``` + +!!! Note + srun (by default)[https://slurm.schedmd.com/srun.html#OPT_export] exports all environmental variables from the executing environment and `--export=ALL` can be left off + +## Biowulf + +```bash +srun --export=ALL "module load snakemake singularity; weave run [keyword args] ${run_id}" +``` + +# srun (real time execution) (interactive) + +## Bigsky/Skyline + +!!! Note + Dependency files for skyline and bigsky differ + Bigsky: `/gs1/RTS/OpenOmics/bin/dependencies.sh` + Skyline: `/data/openomics/bin/dependencies.sh` + +```bash +> #
+srun --pty bash +> #