2009-03-16 06:42:24 +08:00
|
|
|
package org.broadinstitute.sting.gatk.walkers;
|
|
|
|
|
|
|
|
|
|
import org.broadinstitute.sting.gatk.refdata.ReferenceOrderedDatum;
|
2009-04-04 03:54:54 +08:00
|
|
|
import org.broadinstitute.sting.gatk.refdata.RefMetaDataTracker;
|
2009-03-16 06:42:24 +08:00
|
|
|
import org.broadinstitute.sting.gatk.LocusContext;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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-03-27 23:40:45 +08:00
|
|
|
public abstract class LocusWalker<MapType, ReduceType> extends Walker<MapType, ReduceType> {
|
2009-03-16 06:42:24 +08:00
|
|
|
// Do we actually want to operate on the context?
|
2009-04-04 03:54:54 +08:00
|
|
|
public boolean filter(RefMetaDataTracker tracker, char ref, LocusContext context) {
|
2009-03-27 00:22:35 +08:00
|
|
|
return true; // We are keeping all the reads
|
|
|
|
|
}
|
2009-03-16 06:42:24 +08:00
|
|
|
|
2009-04-03 21:23:18 +08:00
|
|
|
/**
|
|
|
|
|
* These two functions state whether we're don't make any sense without reads (requiresRead())
|
|
|
|
|
* or whether we can't take any reads at all (cannotHandleRead())
|
|
|
|
|
*/
|
|
|
|
|
public boolean requiresReads() { return false; }
|
|
|
|
|
public boolean cannotHandleReads() { return false; }
|
|
|
|
|
|
2009-03-16 06:42:24 +08:00
|
|
|
// Map over the org.broadinstitute.sting.gatk.LocusContext
|
2009-04-04 03:54:54 +08:00
|
|
|
public abstract MapType map(RefMetaDataTracker tracker, char ref, LocusContext context);
|
2009-03-16 06:42:24 +08:00
|
|
|
}
|