#!/bin/bash -Ceuo pipefail
sentieon driver \
-t 31 \
-r Homo_sapiens_assembly38.fasta \
-i HCC1395_BL.md.bam \
--read_filter QualCalFilter,table=HCC1395_BL.table,indel=false \
--algo QualCal \
\
-k dbsnp_146.hg38.vcf.gz -k Mills_and_1000G_gold_standard.indels.hg38.vcf.gz -k Homo_sapiens_assembly38.known_indels.vcf.gz \
HCC1395_BL.table.post \
--algo ReadWriter HCC1395_BL.recalibrated.bam
# Sentieon ReadWriter doesn't create index - use samtools
samtools index HCC1395_BL.recalibrated.bam
sentieon driver \
-t 31 \
--algo QualCal \
--plot \
--before HCC1395_BL.table \
--after HCC1395_BL.table.post \
\
HCC1395_BL.csv
sentieon plot QualCal -o HCC1395_BL.pdf HCC1395_BL.csv
cat <<-END_VERSIONS > versions.yml
"DAQ:SENTIEON_BQSR:QUALCAL_APPLY":
sentieon: $(echo $(sentieon driver --version 2>&1) | sed -e "s/sentieon-genomics-//g")
END_VERSIONS