SLURM-examples
SLURM-examples copied to clipboard
Hi there, Happened to be looking for some information on this subject when I came across some information on the SLURM-examples page, found here: https://github.com/statgen/SLURM-examples, that says the following: >...
- Option 1: (used by ) ``` #!/bin/bash #SBATCH --array=1-2 declare -a commands commands[1]="Rscript myscript.R input_file_A.txt" commands[2]="Rscript myscript.R input_file_B.txt" bash -c "${commands[${SLURM_ARRAY_TASK_ID}]}" ``` - Option 2: ``` #!/bin/bash #SBATCH --array=1-2...