Class FuncotatorDataSourceDownloader
java.lang.Object
org.broadinstitute.hellbender.cmdline.CommandLineProgram
org.broadinstitute.hellbender.tools.funcotator.FuncotatorDataSourceDownloader
- All Implemented Interfaces:
org.broadinstitute.barclay.argparser.CommandLinePluginProvider
FuncotatorDataSourceDownloader
is a tool to download the latest data sources for Funcotator
.
General Information
This tool can download pre-packaged data sources for both the somatic and germline use cases.
The data sources downloaded by this tool correspond to the latest / current maximum of the data sources supported as defined in DataSourceUtils.CURRENT_MAXIMUM_DATA_SOURCE_VERSION
.
To download and extract the data sources, you can invoke FuncotatorDataSourceDownloader
in the following ways:
- For somatic data sources:
./gatk FuncotatorDataSourceDownloader --somatic --validate-integrity --extract-after-download
- For germline data sources:
./gatk FuncotatorDataSourceDownloader --germline --validate-integrity --extract-after-download
Notes
- By default
FuncotatorDataSourceDownloader
will not overwrite data sources if they already exist locally. - It is recommended to run the validation step after downloading the data sources to ensure download integrity.
- Using this tool will result in longer download times for data sources than if
gsutil
were invoked directly to copy down the data sources.
This is a known issue and is due to the tool printing the progress of the download.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.broadinstitute.hellbender.cmdline.CommandLineProgram
CommandLineProgram.AutoCloseableNoCheckedExceptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
protected boolean
static final String
protected File
static final String
static final String
static final String
static final Path
static final String
Fields inherited from class org.broadinstitute.hellbender.cmdline.CommandLineProgram
GATK_CONFIG_FILE, NIO_MAX_REOPENS, NIO_PROJECT_FOR_REQUESTER_PAYS, QUIET, specialArgumentsCollection, tmpDir, useJdkDeflater, useJdkInflater, VERBOSITY
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.broadinstitute.hellbender.cmdline.CommandLineProgram
customCommandLineValidation, getCommandLine, getCommandLineParser, getDefaultHeaders, getMetricsFile, getPluginDescriptors, getSupportInformation, getToolkitName, getToolkitShortName, getToolStatusWarning, getUsage, getVersion, instanceMain, instanceMainPostParseArgs, isBetaFeature, isExperimentalFeature, onShutdown, parseArgs, printLibraryVersions, printSettings, printStartupMessage, runTool, setDefaultHeaders, warnOnToolStatus
-
Field Details
-
VALIDATE_INTEGRITY_ARG_LONG_NAME
- See Also:
-
SOMATIC_ARG_LONG_NAME
- See Also:
-
GERMLINE_ARG_LONG_NAME
- See Also:
-
OVERWRITE_ARG_LONG_NAME
- See Also:
-
EXTRACT_AFTER_DOWNLOAD
- See Also:
-
SOMATIC_GCLOUD_DATASOURCES_BASEURL
-
SOMATIC_GCLOUD_DATASOURCES_PATH
-
outputFile
@Argument(shortName="O", fullName="output", doc="Output location for the data sources.", optional=true) protected File outputFile -
extractDataSourcesAfterDownload
@Argument(shortName="extract-after-download", fullName="extract-after-download", doc="Extract the data sources to a sibling folder after they have been downloaded.", optional=true) protected boolean extractDataSourcesAfterDownload
-
-
Constructor Details
-
FuncotatorDataSourceDownloader
public FuncotatorDataSourceDownloader()
-
-
Method Details
-
onStartup
protected void onStartup()Description copied from class:CommandLineProgram
Perform initialization/setup after command-line argument parsing but before doWork() is invoked. Default implementation does nothing. Subclasses can override to perform initialization.- Overrides:
onStartup
in classCommandLineProgram
-
doWork
Description copied from class:CommandLineProgram
Do the work after command line has been parsed. RuntimeException may be thrown by this method, and are reported appropriately.- Specified by:
doWork
in classCommandLineProgram
- Returns:
- the return value or null is there is none.
-