fix wrong spanning deletion length with NON_REF of HaplotypeCaller #8292
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dear GATK team,
I found and fixed a bug in HaplotypeCaller that incorrectly lengthened the deletion by one nucleotide in the case of gVCF mode.
Like this vcf (this result is made from open data HG001/NA12878 sample).
chr21 10452604 . G *,A,<NON_REF>
andchr21 10452605 . C *,T,<NON_REF>
are not covered any deletion clearly but treated as spanning deletion.Command is following.
$java -jar $gatk HaplotypeCaller \ --reference Homo_sapiens_assembly38.fasta \ --input CNR0028194.gatk_best_practice.GRCh38.chr21_10451605-10453605.bam \ --output out.vcf \ --pcr-indel-model NONE \ -ERC GVCF \ -L chr21:10451605-10453605
Reference is GATK Bundle hg38.
Input bam is placed in https://pezycomputing-my.sharepoint.com/:f:/g/personal/sakai_pezy_co_jp/EuiUh7J-eCpOmA_Xkf3cOEwByf3lqKpm4N4FdYy7B5FCJA?e=dlZwDl
In recordDeletion method, NON_REF Allele is used for calculation of delesionSize as zero length allele.
I modified it to skip when NON_REF.