Skip to content

Commit

Permalink
Stop removing periods from the end of output names (#1433)
Browse files Browse the repository at this point in the history
* Stop removing periods from the end of output names

* Update CheckFingerprint
  • Loading branch information
tlangs authored Nov 15, 2022
1 parent 4f7bb95 commit 5295289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/main/java/picard/analysis/CollectMultipleMetrics.java
Original file line number Diff line number Diff line change
Expand Up @@ -688,9 +688,6 @@ public void setProgramsToRun(final Collection<ProgramInterface> programsToRun) {

@Override
public int doWork() {
if (OUTPUT.endsWith(".")) {
OUTPUT = OUTPUT.substring(0, OUTPUT.length() - 1);
}

final Map<ProgramInterface, List<String>> additionalArguments = processAdditionalArguments(EXTRA_ARGUMENT);

Expand Down
5 changes: 2 additions & 3 deletions src/main/java/picard/fingerprint/CheckFingerprint.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ public class CheckFingerprint extends CommandLineProgram {

private final Log log = Log.getInstance(CheckFingerprint.class);

public static final String FINGERPRINT_SUMMARY_FILE_SUFFIX = "fingerprinting_summary_metrics";
public static final String FINGERPRINT_DETAIL_FILE_SUFFIX = "fingerprinting_detail_metrics";
public static final String FINGERPRINT_SUMMARY_FILE_SUFFIX = ".fingerprinting_summary_metrics";
public static final String FINGERPRINT_DETAIL_FILE_SUFFIX = ".fingerprinting_detail_metrics";

private Path inputPath;
private Path genotypesPath;
Expand All @@ -229,7 +229,6 @@ protected int doWork() {
outputDetailMetricsFile = DETAIL_OUTPUT;
outputSummaryMetricsFile = SUMMARY_OUTPUT;
} else {
OUTPUT += ".";
outputDetailMetricsFile = new File(OUTPUT + FINGERPRINT_DETAIL_FILE_SUFFIX);
outputSummaryMetricsFile = new File(OUTPUT + FINGERPRINT_SUMMARY_FILE_SUFFIX);
}
Expand Down

0 comments on commit 5295289

Please sign in to comment.