From fcc347bb05c0d3048a2fb51dd490fb443926b8ea Mon Sep 17 00:00:00 2001 From: carneiro Date: Mon, 14 Mar 2011 20:32:09 +0000 Subject: [PATCH] making sure the output is as pretty as I said it would be on the wiki. wikipage for this walker is up, at : http://www.broadinstitute.org/gsa/wiki/index.php/Genotype_and_Validate#Examples use it ;) git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5442 348d0f76-0448-11de-a6fe-93d51630548a --- .../walkers/GenotypeAndValidateWalker.java | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/java/src/org/broadinstitute/sting/playground/gatk/walkers/GenotypeAndValidateWalker.java b/java/src/org/broadinstitute/sting/playground/gatk/walkers/GenotypeAndValidateWalker.java index f54c602c6..d8c71ebbc 100755 --- a/java/src/org/broadinstitute/sting/playground/gatk/walkers/GenotypeAndValidateWalker.java +++ b/java/src/org/broadinstitute/sting/playground/gatk/walkers/GenotypeAndValidateWalker.java @@ -166,8 +166,10 @@ public class GenotypeAndValidateWalker extends RodWalker 0 && context.getBasePileup().getBases().length < minDepth) { - counter.numUncovered = 1L; + if (!context.hasReads() || (minDepth > 0 && context.getBasePileup().getBases().length < minDepth)) { + // don't count indel extended events multiple times as uncovered. + // if (vcComp.getStart() == ref.getLocus().getStart()) //todo - not sure I want this, may be misleading to filter anything. + counter.numUncovered = 1L; return counter; } @@ -179,15 +181,15 @@ public class GenotypeAndValidateWalker extends RodWalker