Skip to content

Commit

Permalink
responding to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lbergelson committed May 14, 2018
1 parent da9afa2 commit df35942
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.broadinstitute.hellbender.cmdline.StandardArgumentDefinitions;

/**
* interface for argument collections that control
* interface for argument collections that control how sequence dictionary validation should be handled
*/
public interface SequenceDictionaryValidationArgumentCollection {

Expand Down
13 changes: 12 additions & 1 deletion src/main/java/org/broadinstitute/hellbender/engine/GATKTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public abstract class GATKTool extends CommandLineProgram {
private double secondsBetweenProgressUpdates = ProgressMeter.DEFAULT_SECONDS_BETWEEN_UPDATES;

@ArgumentCollection
SequenceDictionaryValidationArgumentCollection seqValidationArguments = new SequenceDictionaryValidationArgumentCollection.StandardValidationCollection();
SequenceDictionaryValidationArgumentCollection seqValidationArguments = getSequenceDictionaryValidationArgumentCollection();

@Argument(fullName=StandardArgumentDefinitions.CREATE_OUTPUT_BAM_INDEX_LONG_NAME,
shortName=StandardArgumentDefinitions.CREATE_OUTPUT_BAM_INDEX_SHORT_NAME,
Expand Down Expand Up @@ -449,6 +449,17 @@ public boolean requiresIntervals() {
return false;
}


/**
* Get the {@link SequenceDictionaryValidationArgumentCollection} for the tool.
* Subclasses may override this method in order to customize validation options.
*
* @return a SequenceDictionaryValidationArgumentCollection
*/
protected SequenceDictionaryValidationArgumentCollection getSequenceDictionaryValidationArgumentCollection() {
return new SequenceDictionaryValidationArgumentCollection.StandardValidationCollection();
}

/**
* Load the master sequence dictionary as specified in {@code masterSequenceDictionaryFilename}.
* Will only load the master sequence dictionary if it has not already been loaded.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import java.util.List;

@DocumentedFeature
@CommandLineProgramProperties(summary = "align reads using BWA",
oneLineSummary = "align reads to a given reference using BWA on Spark",
@CommandLineProgramProperties(summary = "Align reads using BWA",
oneLineSummary = "Align reads to a given reference using BWA on Spark",
programGroup = ReadDataManipulationProgramGroup.class)
@BetaFeature
public final class BwaSpark extends GATKSparkTool {
Expand Down

0 comments on commit df35942

Please sign in to comment.