To address weird case with all hom-refs, but alt allele is present, skip AS_QD for all-ref sites and remove raw annotations whether or not they can be successfully finalized
This commit is contained in:
parent
4efde50225
commit
31fc64f82c
|
|
@ -172,6 +172,8 @@ public class AS_QualByDepth extends InfoFieldAnnotation implements ReducibleAnno
|
|||
return null;
|
||||
|
||||
final List<Integer> standardDepth = getAlleleDepths(genotypes);
|
||||
if (standardDepth == null) //all no-calls and homRefs
|
||||
return null;
|
||||
|
||||
//Parse the VC's allele-specific qual values
|
||||
List<Object> alleleQualObjList = vc.getAttributeAsList(GATKVCFConstants.AS_QUAL_KEY);
|
||||
|
|
|
|||
|
|
@ -357,9 +357,9 @@ public class VariantAnnotatorEngine {
|
|||
final Map<String, Object> annotationsFromCurrentType = currentASannotation.finalizeRawData(vc, originalVC);
|
||||
if ( annotationsFromCurrentType != null ) {
|
||||
infoAnnotations.putAll(annotationsFromCurrentType);
|
||||
//clean up raw annotation data after annotations are finalized
|
||||
infoAnnotations.remove(currentASannotation.getRawKeyName());
|
||||
}
|
||||
//clean up raw annotation data after annotations are finalized
|
||||
infoAnnotations.remove(currentASannotation.getRawKeyName());
|
||||
}
|
||||
|
||||
// generate a new annotated VC
|
||||
|
|
|
|||
Loading…
Reference in New Issue