Skip to content

Commit

Permalink
Still working on AS_VarDP
Browse files Browse the repository at this point in the history
  • Loading branch information
ldgauthier committed May 28, 2019
1 parent f098d6c commit 789cc37
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import org.broadinstitute.hellbender.utils.variant.GATKVCFConstants;

import java.util.*;
import java.util.stream.Collectors;

/**
* Allele-specific call confidence normalized by depth of sample reads supporting the allele
Expand Down Expand Up @@ -118,7 +119,8 @@ public Map<String, Object> finalizeRawData(VariantContext vc, VariantContext ori

final List<Integer> standardDepth;
if (originalVC.hasAttribute(GATKVCFConstants.AS_VARIANT_DEPTH_KEY)) {
standardDepth = originalVC.getAttributeAsString(GATKVCFConstants.AS_VARIANT_DEPTH_KEY, "").split(AnnotationUtils.AS_SPLIT_REGEX);
standardDepth = Arrays.stream(originalVC.getAttributeAsString(GATKVCFConstants.AS_VARIANT_DEPTH_KEY, "")
.split(AnnotationUtils.AS_SPLIT_REGEX)).mapToInt(Integer::parseInt).boxed().collect(Collectors.toList());
} else {
standardDepth = getAlleleDepths(genotypes);
}
Expand Down

0 comments on commit 789cc37

Please sign in to comment.