Skip to content
Snippets Groups Projects
Commit fab98a6d authored by Brandi Cantarel's avatar Brandi Cantarel
Browse files

update gatk runner

parent ec1a962c
Branches
Tags
No related merge requests found
......@@ -35,24 +35,16 @@ if [[ -z $NPROC ]]
then
NPROC=`nproc`
fi
if [[ -a "${index_path}/dbSnp.gatk4.vcf.gz" ]]
dbsnp="${index_path}/dbSnp.gatk4.vcf.gz"
if [[ ! -f "${index_path}/dbSnp.gatk4.vcf.gz" ]]
then
dbsnp="${index_path}/dbSnp.gatk4.vcf.gz"
else
echo "Missing dbSNP File: ${index_path}/dbSnp.gatk4.vcf.gz"
usage
fi
if [[ -a "${index_path}/GoldIndels.vcf.gz" ]]
then
knownindel="${index_path}/GoldIndels.vcf.gz"
else
echo "Missing InDel File: ${index_path}/GoldIndels.vcf.gz"
usage
fi
if [[ -a "${index_path}/genome.fa" ]]
reffa="${index_path}/genome.fa"
if [[ ! -f "${index_path}/genome.fa" ]]
then
reffa="${index_path}/genome.fa"
else
echo "Missing Fasta File: ${index_path}/genome.fa"
usage
fi
......@@ -62,6 +54,6 @@ module load gatk/4.1.4.0 samtools/gcc/1.8
which samtools
samtools index -@ $NPROC ${sbam}
gatk --java-options "-Xmx32g" BaseRecalibrator -I ${sbam} --known-sites ${index_path}/dbSnp.gatk4.vcf.gz -R ${reffa} -O ${pair_id}.recal_data.table --use-original-qualities
gatk --java-options "-Xmx32g" BaseRecalibrator -I ${sbam} --known-sites $dbsnp -R ${reffa} -O ${pair_id}.recal_data.table --use-original-qualities
gatk --java-options "-Xmx32g" ApplyBQSR -I ${sbam} -R ${reffa} -O ${pair_id}.final.bam --use-original-qualities -bqsr ${pair_id}.recal_data.table
samtools index -@ $NPROC ${pair_id}.final.bam
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment