18 lines
456 B
Java
Executable File
18 lines
456 B
Java
Executable File
package org.broadinstitute.sting.gatk.walkers;
|
|
|
|
import net.sf.samtools.SAMRecord;
|
|
import org.broadinstitute.sting.gatk.LocusContext;
|
|
|
|
public class PrintReadsWalker extends ReadWalker<Integer, Integer> {
|
|
public Integer map(char[] ref, SAMRecord read) {
|
|
out.println(read.format());
|
|
return 1;
|
|
}
|
|
|
|
public Integer reduceInit() { return 0; }
|
|
|
|
public Integer reduce(Integer value, Integer sum) {
|
|
return value + sum;
|
|
}
|
|
}
|