-
Notifications
You must be signed in to change notification settings - Fork 0
/
genotype_gVCF.sh
65 lines (49 loc) · 1.39 KB
/
genotype_gVCF.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#! /bin/bash
#$ -N gtgvcf
#$ -o gtgvcfout
#$ -e gtgvcferr
#$ -V
#$ -cwd
#$ -S /bin/bash
#$ -q !gbs
# #$ -l mem_free=2G
# $ -p -10
# #$ -h
#$ -t 50-50:1
# $ -t 5-4921
i=$(expr $SGE_TASK_ID - 1)
JAVA="/home/bpp/knausb/bin/javadir/jre1.8.0_25/bin/java"
#GATK="/home/bpp/knausb/bin/gatk/GenomeAnalysisTK.jar"
GATK="/home/bpp/knausb/bin/gatk/GenomeAnalysisTK-3.5.jar"
#GATK="/home/bpp/knausb/bin/gatk/GenomeAnalysisTK-3.6.jar"
REF="/home/bpp/knausb/Grunwald_Lab/home/knausb/bjk_pinf_ref/pinf_super_contigs.fa"
#FILE=( `cat "bams1.txt" `)
#IFS=',' read -r -a arr <<< "${FILE[$i]}"
echo -n "Running on: "
hostname
echo "SGE job id: $JOB_ID"
date
echo
CMD="$JAVA -version 2>&1"
echo $CMD
eval $CMD
echo
CMD="$JAVA -jar $GATK --version"
echo $CMD
eval $CMD
echo
# https://www.broadinstitute.org/gatk/documentation/article?id=3893
# https://www.broadinstitute.org/gatk/documentation/tooldocs/org_broadinstitute_gatk_engine_CommandLineGATK.php
# https://www.broadinstitute.org/gatk/documentation/tooldocs/org_broadinstitute_gatk_tools_walkers_haplotypecaller_HaplotypeCaller.php
# https://www.broadinstitute.org/gatk/documentation/tooldocs/org_broadinstitute_gatk_tools_walkers_variantutils_GenotypeGVCFs.php
CMD="$JAVA -Djava.io.tmpdir=/data/ \
-jar $GATK \
-T GenotypeGVCFs \
-R $REF \
-L Supercontig_1.$SGE_TASK_ID \
-V gvcfs.list \
-o vcfs/sc_1.$SGE_TASK_ID.vcf.gz"
echo $CMD
eval $CMD
date
# EOF.