Skip to content

Commit

Permalink
Removing WellformedReadFilter from CountReadsSpark (#5329)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesemery authored Oct 19, 2018
1 parent 05860f7 commit ec59e1e
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@
import org.broadinstitute.barclay.help.DocumentedFeature;
import org.broadinstitute.hellbender.cmdline.StandardArgumentDefinitions;
import org.broadinstitute.hellbender.cmdline.programgroups.CoverageAnalysisProgramGroup;
import org.broadinstitute.hellbender.engine.filters.ReadFilter;
import org.broadinstitute.hellbender.engine.filters.ReadFilterLibrary;
import org.broadinstitute.hellbender.engine.spark.GATKSparkTool;
import org.broadinstitute.hellbender.utils.gcs.BucketUtils;
import org.broadinstitute.hellbender.utils.read.GATKRead;

import java.io.PrintStream;
import java.util.Collections;
import java.util.List;

/**
* Calculate the overall number of reads in a SAM/BAM file
Expand Down Expand Up @@ -64,6 +68,11 @@ public final class CountReadsSpark extends GATKSparkTool {
)
public String out;

@Override
public List<ReadFilter> getDefaultReadFilters() {
return Collections.singletonList(ReadFilterLibrary.ALLOW_ALL_READS);
}

@Override
protected void runTool(final JavaSparkContext ctx) {
final JavaRDD<GATKRead> reads = getReads();
Expand Down

0 comments on commit ec59e1e

Please sign in to comment.