-
Notifications
You must be signed in to change notification settings - Fork 3
/
dictionary.sh
37 lines (29 loc) · 924 Bytes
/
dictionary.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
#!/bin/bash
#SBATCH --job-name=dictionary
#SBATCH -n 1
#SBATCH -N 1
#SBATCH -c 1
#SBATCH --mem=30G
#SBATCH --partition=general
#SBATCH --qos=general
#SBATCH --mail-type=ALL
#SBATCH [email protected]
#SBATCH -o ../log_files/%x_%A.out
#SBATCH -e ../log_files/%x_%A.err
hg19=/home/FCAM/nperera/Tutorial/variant_detection_GATK/Illumina/Analysis_2/hg19/hg19.fa
ref=hg19
##################################################################
## CreateSequenceDictionary
##################################################################
echo "start: `date`"
module load picard/2.9.2
export _JAVA_OPTIONS=-Djava.io.tmpdir=/scratch
if [ ! -d ../"$ref" ]; then
mkdir -p ../"$ref"
fi
cd ../"$ref"/
java -jar $PICARD CreateSequenceDictionary \
REFERENCE=hg19.fasta \
OUTPUT=hg19.dict \
CREATE_INDEX=True
echo "=========== hg19 sequence dictionary done ================="