-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable use of cloud reference files #1804
Changes from all commits
b1f0946
e575e33
1ac21e2
4c82db1
fd4e11f
a1d8d26
6b78538
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,23 +24,31 @@ | |
|
||
package picard.cmdline.argumentcollections; | ||
|
||
import htsjdk.samtools.util.Log; | ||
import org.broadinstitute.barclay.argparser.Argument; | ||
import picard.cmdline.StandardOptionDefinitions; | ||
import picard.nio.PicardHtsPath; | ||
|
||
import java.io.File; | ||
import java.nio.file.Path; | ||
|
||
/** | ||
* Argument collection for references that are required (and not common). | ||
*/ | ||
public class RequiredReferenceArgumentCollection implements ReferenceArgumentCollection { | ||
private final static Log log = Log.getInstance(RequiredReferenceArgumentCollection.class); | ||
|
||
@Argument(shortName = StandardOptionDefinitions.REFERENCE_SHORT_NAME, doc = "Reference sequence file.", common = false) | ||
public File REFERENCE_SEQUENCE; | ||
@Argument(shortName = StandardOptionDefinitions.REFERENCE_SHORT_NAME, doc = "Reference sequence file.") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you remove "common = false" on purpose ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes as suggested by IntelliJ since common = false by default There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, ok. |
||
public PicardHtsPath REFERENCE_SEQUENCE; | ||
|
||
/** | ||
* @return The reference provided by the user. | ||
*/ | ||
public File getReferenceFile() { | ||
return REFERENCE_SEQUENCE; | ||
}; | ||
return ReferenceArgumentCollection.getFileSafe(REFERENCE_SEQUENCE, log); | ||
} | ||
|
||
@Override | ||
public Path getReferencePath() { return REFERENCE_SEQUENCE == null ? null: REFERENCE_SEQUENCE.toPath(); } | ||
|
||
@Override | ||
public PicardHtsPath getHtsPath() { return REFERENCE_SEQUENCE; } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All of these methods will inherit javadoc from the interface, so I would remove all of the javadoc here unless there is some behavior specific to this class. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. all docs removed |
||
|
||
} |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could inherit the javadoc from the base class, but if the javadoc is kept here I would suggest adding a including comment saying that this method is preserved for compatibility, and that
getReferencePath
andgetHtsPath
are preferred.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the javadoc here and moved the disclaimer about backward compatibility to the base class too.