Variants that become hom-ref after regenotyping in GenotypeGVCFs are now getting output in -allSites mode.
This commit is contained in:
parent
5465e4484e
commit
2b848ad859
|
|
@ -219,11 +219,14 @@ public class GenotypeGVCFs extends RodWalker<VariantContext, VariantContextWrite
|
||||||
// only re-genotype polymorphic sites
|
// only re-genotype polymorphic sites
|
||||||
if ( result.isVariant() ) {
|
if ( result.isVariant() ) {
|
||||||
VariantContext regenotypedVC = genotypingEngine.calculateGenotypes(result);
|
VariantContext regenotypedVC = genotypingEngine.calculateGenotypes(result);
|
||||||
if ( regenotypedVC == null )
|
if ( regenotypedVC == null) {
|
||||||
return null;
|
if (!INCLUDE_NON_VARIANTS)
|
||||||
|
return null;
|
||||||
regenotypedVC = GATKVariantContextUtils.reverseTrimAlleles(regenotypedVC);
|
}
|
||||||
result = addGenotypingAnnotations(originalVC.getAttributes(), regenotypedVC);
|
else {
|
||||||
|
regenotypedVC = GATKVariantContextUtils.reverseTrimAlleles(regenotypedVC);
|
||||||
|
result = addGenotypingAnnotations(originalVC.getAttributes(), regenotypedVC);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if it turned monomorphic then we either need to ignore or fix such sites
|
// if it turned monomorphic then we either need to ignore or fix such sites
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue