From 69d9b5989f275115738f1b56a4317ce90b9b5a2d Mon Sep 17 00:00:00 2001 From: carneiro Date: Fri, 27 May 2011 21:58:51 +0000 Subject: [PATCH] documenting this walker as it may be useful to others in the future. git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5899 348d0f76-0448-11de-a6fe-93d51630548a --- .../oneoffprojects/walkers/Percent20xCoverage.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/java/src/org/broadinstitute/sting/oneoffprojects/walkers/Percent20xCoverage.java b/java/src/org/broadinstitute/sting/oneoffprojects/walkers/Percent20xCoverage.java index d8fbf041c..b493e272d 100755 --- a/java/src/org/broadinstitute/sting/oneoffprojects/walkers/Percent20xCoverage.java +++ b/java/src/org/broadinstitute/sting/oneoffprojects/walkers/Percent20xCoverage.java @@ -11,8 +11,7 @@ import org.broadinstitute.sting.gatk.walkers.TreeReducible; import java.io.PrintStream; /** - * Walks over the input data set, calculating the total number of covered loci for diagnostic purposes. - * Simplest example of a locus walker. + * Walks over the input data set, calculating the percentage of loci covered by at least 20 reads. */ public class Percent20xCoverage extends LocusWalker implements TreeReducible { @Output(doc="Write count to this file instead of STDOUT") @@ -39,16 +38,14 @@ public class Percent20xCoverage extends LocusWalker implements Tr return 0; } - public Long reduceInit() { return 0l; } + public Long reduceInit() { + return 0l; + } public Long reduce(Integer value, Long sum) { return value + sum; } - /** - * Reduces two subtrees together. In this case, the implementation of the tree reduce - * is exactly the same as the implementation of the single reduce. - */ public Long treeReduce(Long lhs, Long rhs) { return lhs + rhs; }