public class SraDownload extends SequenceReadArchive implements ApiModule, InputDataModule, OutsidePipelineWriter
| Modifier and Type | Field and Description |
|---|---|
static String |
DEST_DIR |
static String |
EXE_FASTERQ |
static String |
METADATA_SRA_ID_COL_NAME |
DB_DIR, DB_DIR_DESC, DB_NAME, SRA_ACC_LIST, SRA_ACC_LIST_DESC, SRP, SRP_DESCGZIP_EXT, LOG_EXT, PDF_EXT, RETURN, SH_EXT, TAB_DELIM, TSV_EXT, TXT_EXTLOG_DIR, MAIN_SCRIPT_PREFIX, NO_VERSION, OUTPUT_DIR, RES_DIR, TEMP_DIR| Constructor and Description |
|---|
SraDownload() |
| Modifier and Type | Method and Description |
|---|---|
List<List<String>> |
buildScript(List<File> files)
Return an inner list of lines to execute for each sample.
|
void |
checkDependencies()
Validate module dependencies:
Require
Config. exists
Require Config. is positive integer
Require Config. is positive integer
Verify Config. is positive integer if set
Start the AWS DB sync to S3 if a novel DB has been configure and
"aws.copyDbToS3" is enabled
|
void |
cleanUp()
If metadata exists in module output directory, refresh MetaUtil.
|
String |
getCitationString()
At a minimum, this should return the name and/or url for the wrapped tool.
|
String |
getDataSource() |
String |
getDescription()
Briefly describe what this module does.
|
String |
getDetails()
A extension of
getDescription. |
String |
getDockerImageName()
Get the docker image to use for this module.
|
String |
getDockerImageOwner()
Get the name of the docker hub user that owns the image to use for this module.
|
String |
getDockerImageTag()
Get the version / tag to use for the docker image.
|
Set<String> |
getInputDataTypes() |
List<File> |
getInputFiles()
BioModule
BioModuleImpl.getInputFiles() is called to initialize upon first call and cached. |
List<String> |
getPreRequisiteModules()
By default, no prerequisites are required.
|
String |
getSummary()
Returns summary message to be displayed by Email module so must not contain confidential info.
|
Set<String> |
getWriteDirs() |
Boolean |
isValidProp(String property)
Tests to see if the value val is valid for property prop; primarily tests format.
|
String |
version()
Changes to a module class should be accompanied by a increment in version.
|
buildScriptForPairedReads, executeTask, getJobParams, getMainScript, getRuntimeParams, getScriptDir, getScriptErrors, getTimeout, getWorkerScriptFunctions, hasScriptsaddGeneralProperty, addGeneralProperty, addGeneralProperty, addNewProperty, addNewProperty, cacheInputFiles, compareTo, equals, findModuleInputFiles, getAlias, getDescription, getFileCache, getID, getLogDir, getMenuPlacement, getMetadata, getModuleDir, getOutputDir, getPostRequisiteModules, getPropDefault, getPropDescMap, getPropType, getPropTypeMap, getResourceDir, getTempDir, getTitle, hashCode, init, isValidInputModule, listProps, setAlias, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDescription, getMenuPlacement, getPropType, getTitle, listPropsexecuteTask, getAlias, getID, getLogDir, getMetadata, getModuleDir, getOutputDir, getPostRequisiteModules, getPropDefault, getResourceDir, getTempDir, init, isValidInputModule, setAliaspublic static final String METADATA_SRA_ID_COL_NAME
public static final String DEST_DIR
public static final String EXE_FASTERQ
public List<File> getInputFiles()
BioModuleImplBioModuleImpl.getInputFiles() is called to initialize upon first call and cached.getInputFiles in interface BioModulegetInputFiles in class BioModuleImplpublic List<List<String>> buildScript(List<File> files) throws Exception
ScriptModuleImplbuildScript in interface ScriptModulebuildScript in class ScriptModuleImplfiles - Files in the input directory that contain only forward readsException - if unable to generate script linespublic List<String> getPreRequisiteModules() throws Exception
BioModuleImplgetPreRequisiteModules in interface BioModulegetPreRequisiteModules in class BioModuleImplException - if invalid Class names are returned as prerequisitespublic Boolean isValidProp(String property) throws Exception
ApiModuleBioModule.checkDependencies(). Using switch/case or a stack of if/else is recommended.
Within each case, call any/all method that is used by this module to access the value from the config file,
leveraging the checks in the Config.get* methods.
This method should never actually return false. If the value is not valid, it should throw an exception that
includes a helpful message about whats not valid. As part of a throwable, that message is passed along to
wherever the call started. Any time that "false" is actually the desired form, this method should be wrapped in
a try/catch.isValidProp in interface ApiModuleisValidProp in class SequenceReadArchiveExceptionpublic void checkDependencies()
throws Exception
ScriptModuleImplConfig. exists
Config. is positive integer
Config. is positive integer
Config. is positive integer if set
checkDependencies in interface BioModulecheckDependencies in class ScriptModuleImplException - thrown if missing or invalid dependencies are foundpublic String getDescription()
ApiModulegetDetails.getDescription in interface ApiModulepublic String getDetails()
ApiModulegetDescription. Beyond the brief description, give details such as
the interaction between properties.getDetails in interface ApiModulegetDetails in class BioModuleImplpublic String getCitationString()
ApiModulegetCitationString in interface ApiModulepublic String version()
BioModulepublic String getDockerImageOwner()
BioModulegetDockerImageOwner in interface BioModulegetDockerImageOwner in class BioModuleImplpublic String getDockerImageName()
BioModulegetDockerImageName in interface BioModulepublic String getDockerImageTag()
BioModulegetDockerImageTag in interface BioModulegetDockerImageTag in class BioModuleImplpublic String getSummary() throws Exception
ScriptModuleImplgetSummary in interface BioModulegetSummary in class ScriptModuleImplException - if any error occurspublic String getDataSource()
public Set<String> getInputDataTypes()
getInputDataTypes in interface InputDataModulepublic void cleanUp()
throws Exception
BioModuleImplcleanUp in interface BioModulecleanUp in class BioModuleImplException - thrown if any runtime error occurspublic Set<String> getWriteDirs() throws DockerVolCreationException, ConfigPathException
getWriteDirs in interface OutsidePipelineWriterDockerVolCreationExceptionConfigPathException