Skip to content

Commit

Permalink
Update arrays_in_slurm.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eberdan authored Nov 2, 2023
1 parent c16b4fa commit 45a2751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Intermediate_shell/lessons/arrays_in_slurm.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sbatch --array=1-10 my_script.sh

This will run my_script.sh 10 times with the job IDs 1,2,3,4,5,6,7,8,9,10

We can also put this directly into the bash script itself (although we will continue with the command line version here.
We can also put this directly into the bash script itself (although we will continue with the command line version here).
```bash
$SBATCH --array=1-10
```
Expand Down Expand Up @@ -103,7 +103,7 @@ file=$(awk -v awkvar="${SLURM_ARRAY_TASK_ID}" 'NR==awkvar' samples.txt)

PREFIX="Folder_${SLURM_ARRAY_TASK_ID}"
mkdir $PREFIX
cd $PREFIX2
cd $PREFIX

samtools view -S -b ${file}.sam > ${file}.bam

Expand Down

0 comments on commit 45a2751

Please sign in to comment.