-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflash.sbatch
More file actions
executable file
·47 lines (36 loc) · 855 Bytes
/
flash.sbatch
File metadata and controls
executable file
·47 lines (36 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
#### SLURM Parameters: ####
#SBATCH --nodes=1
#SBATCH --ntasks=16
#SBATCH --job-name=flash
#SBATCH --time=00-10:00:00
#SBATCH --mem=256GB
#SBATCH --mail-user=''
#SBATCH --mail-type=ALL
#SBATCH --output='flash-%j.out'
#SBATCH --error='flash-%j.error'
#SBATCH --partition=prod
#### Load default modules ####
module purge
module load java
#### RUN Parameters: ####
READ1=$1
READ2=$2
OUTDIR="../flash"
# get output folder name and create if req
name=$(basename $READ1)
name=${name%%.*}
name=$(echo $name | cut -d "_" -f1)
echo $name
OUT=${OUTDIR}/${name}
if [ ! -d $OUT ]; then
mkdir $OUT
fi
# place full path of flash software here
FLASH="place full path to flash executable here"
# print version of flash
$FLASH -v
# run flash with defaults on read1 and read2
cmd="$FLASH -d $OUT -o $name -z -t 16 $READ1 $READ2"
echo $cmd
$cmd