-
Notifications
You must be signed in to change notification settings - Fork 10
/
Part1e_sort.sh
48 lines (41 loc) · 926 Bytes
/
Part1e_sort.sh
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
46
47
48
#!/bin/bash
#SBATCH --job-name=bam_sort
#SBATCH -n 1
#SBATCH -N 1
#SBATCH -c 1
#SBATCH --mem=40G
#SBATCH --qos=general
#SBATCH --partition=general
#SBATCH --mail-user=
#SBATCH --mail-type=ALL
#SBATCH -o %x_%j.out
#SBATCH -e %x_%j.err
hostname
date
module load picard/2.9.2
export _JAVA_OPTIONS=-Djava.io.tmpdir=/scratch
# son
IN=../align_stepwise/son.bam
OUT=../align_stepwise/son.sort.bam
java -jar $PICARD SortSam \
INPUT=$IN \
OUTPUT=$OUT \
SORT_ORDER=coordinate \
CREATE_INDEX=True
# mom
IN=../align_stepwise/mom.bam
OUT=../align_stepwise/mom.sort.bam
java -jar $PICARD SortSam \
INPUT=$IN \
OUTPUT=$OUT \
SORT_ORDER=coordinate \
CREATE_INDEX=True
# dad
IN=../align_stepwise/dad.bam
OUT=../align_stepwise/dad.sort.bam
java -jar $PICARD SortSam \
INPUT=$IN \
OUTPUT=$OUT \
SORT_ORDER=coordinate \
CREATE_INDEX=True
date