2009-05-01 06:16:21 +08:00
|
|
|
package org.broadinstitute.sting.gatk.walkers;
|
|
|
|
|
|
2009-08-05 05:01:37 +08:00
|
|
|
import org.broadinstitute.sting.gatk.contexts.AlignmentContext;
|
2009-05-01 06:16:21 +08:00
|
|
|
import org.broadinstitute.sting.utils.GenomeLoc;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
2009-12-29 07:56:49 +08:00
|
|
|
import java.util.Set;
|
2009-05-01 06:16:21 +08:00
|
|
|
|
|
|
|
|
import net.sf.samtools.SAMRecord;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Created by IntelliJ IDEA.
|
|
|
|
|
* User: mdepristo
|
|
|
|
|
* Date: Feb 22, 2009
|
|
|
|
|
* Time: 2:52:28 PM
|
|
|
|
|
* To change this template use File | Settings | File Templates.
|
|
|
|
|
*/
|
2009-05-20 07:26:17 +08:00
|
|
|
@Requires({DataSource.READS,DataSource.REFERENCE})
|
2009-05-01 06:16:21 +08:00
|
|
|
public abstract class DuplicateWalker<MapType, ReduceType> extends Walker<MapType, ReduceType> {
|
|
|
|
|
// Do we actually want to operate on the context?
|
2009-12-29 07:56:49 +08:00
|
|
|
public boolean filter(GenomeLoc loc, AlignmentContext context, Set<List<SAMRecord>> readSets ) {
|
2009-05-01 06:16:21 +08:00
|
|
|
return true; // We are keeping all the reads
|
|
|
|
|
}
|
|
|
|
|
|
2009-12-29 07:56:49 +08:00
|
|
|
public abstract MapType map(GenomeLoc loc, AlignmentContext context, Set<List<SAMRecord>> readSets );
|
2009-05-01 06:16:21 +08:00
|
|
|
|
|
|
|
|
// Given result of map function
|
|
|
|
|
public abstract ReduceType reduceInit();
|
|
|
|
|
public abstract ReduceType reduce(MapType value, ReduceType sum);
|
|
|
|
|
}
|