File tree 1 file changed +9
-2
lines changed
src/main/java/org/broadinstitute/hellbender/tools/walkers
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -406,8 +406,15 @@ private GenotypesContext subsetAlleleSpecificFormatFields(final VCFHeader output
406
406
Set <String > keys = g .getExtendedAttributes ().keySet ();
407
407
for (final String key : keys ) {
408
408
final VCFFormatHeaderLine headerLine = outputHeader .getFormatHeaderLine (key );
409
- gb .attribute (key , ReferenceConfidenceVariantContextMerger .generateAnnotationValueVector (headerLine .getCountType (),
410
- GATKProtectedVariantContextUtils .attributeToList (g .getAnyAttribute (key )), relevantIndices ));
409
+ final Object attribute ;
410
+ if (headerLine .getCountType ().equals (VCFHeaderLineCount .INTEGER ) && headerLine .getCount () == 1 ) {
411
+ attribute = g .getAnyAttribute (key );
412
+ }
413
+ else {
414
+ attribute = ReferenceConfidenceVariantContextMerger .generateAnnotationValueVector (headerLine .getCountType (),
415
+ GATKProtectedVariantContextUtils .attributeToList (g .getAnyAttribute (key )), relevantIndices );
416
+ }
417
+ gb .attribute (key , attribute );
411
418
}
412
419
newGTs .add (gb .make ());
413
420
}
You can’t perform that action at this time.
0 commit comments