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
This commit is contained in:
parent
2524216d4b
commit
69d9b5989f
|
|
@ -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<Integer, Long> implements TreeReducible<Long> {
|
||||
@Output(doc="Write count to this file instead of STDOUT")
|
||||
|
|
@ -39,16 +38,14 @@ public class Percent20xCoverage extends LocusWalker<Integer, Long> 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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue