Skip to content

Commit

Permalink
Fix setting of CommandLineProgram REFERENCE_SEQUENCE.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnbroad committed Jan 16, 2024
1 parent e575e33 commit b6326a5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/picard/cmdline/CommandLineProgram.java
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,7 @@ protected boolean parseArgs(final String[] argv) {
// the tool tries to access REFERENCE_SEQUENCE directly (such tools will subsequently fail given
// a non-local file anyway, but this prevents them from immediately throwing an NPE).
final PicardHtsPath picardHtsPath = referenceSequence.getHtsPath();
REFERENCE_SEQUENCE = picardHtsPath == null ?
null :
new File(picardHtsPath.getURI().getPath()); // Must remove the "file://" prefix
REFERENCE_SEQUENCE = ReferenceArgumentCollection.getFileSafe(picardHtsPath, Log.getInstance(this.getClass()));

// The TMP_DIR setting section below was moved from instanceMain() to here due to timing issues
// related to checking whether R is installed. Certain programs, such as CollectInsertSizeMetrics
Expand Down

0 comments on commit b6326a5

Please sign in to comment.