diff --git a/exercises/bwa/bwa_batch.sh b/exercises/bwa/bwa_batch.sh index 375cc4ba8099b533fbcb5958b6fe0bc158422616..4f1d052628d021d1dbd86846d4b02bbc38940ae5 100644 --- a/exercises/bwa/bwa_batch.sh +++ b/exercises/bwa/bwa_batch.sh @@ -1,6 +1,10 @@ #!/bin/bash -#SBATCH --mem 150 -#SBATCH --nodes 8 +#SBATCH -t 00:15:00 +#SBATCH --mem=150 +#SBATCH --nodes=1 + +## copy data to /scratch and change directory +cp reference.fa reads.txt $SCRATCHDIR && cd $SCRATCHDIR ## create an index bwa index reference.fa @@ -10,3 +14,6 @@ bwa aln -I reference.fa reads.txt > out.sai ## create SAM file bwa samse reference.fa out.sai reads.txt > out.sam + +## copy results back +cp out.sam $HOME/embl_hpc/exercises/bwa/