2009-03-16 06:42:24 +08:00
|
|
|
package org.broadinstitute.sting.gatk.walkers;
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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-16 05:02:12 +08:00
|
|
|
@By(DataSource.READS)
|
2009-06-19 05:03:57 +08:00
|
|
|
@Requires({DataSource.READS,DataSource.REFERENCE, DataSource.REFERENCE_BASES})
|
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
|
|
|
|
|
|
|
|
// 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
|
|
|
}
|