public class PearMergeReads extends SeqModuleImpl
Modifier and Type | Field and Description |
---|---|
protected static String |
EXE_PEAR
Config property "exe.pear" defines the command line PEAR executable |
protected static String |
EXE_PEAR_PARAMS
Config property "exe.pearParams" is used to set the PEAR executable runtime parameters |
protected static String |
FUNCTION_PEAR_MERGE
Name of the bash function that merges files with PEAR: "mergeReads"
|
static String |
NUM_MERGED_READS
Metadata column name for column that holds number of reads per sample after merging: "Num_Merged_Reads"
|
GZIP_EXT, LOG_EXT, PDF_EXT, RETURN, SH_EXT, TAB_DELIM, TSV_EXT, TXT_EXT
SCRIPT_BATCH_SIZE, SCRIPT_DEFAULT_HEADER, SCRIPT_NUM_THREADS, SCRIPT_PERMISSIONS, SCRIPT_TIMEOUT
MAIN_SCRIPT_PREFIX, OUTPUT_DIR, TEMP_DIR
Constructor and Description |
---|
PearMergeReads() |
Modifier and Type | Method and Description |
---|---|
List<List<String>> |
buildScript(List<File> files)
Build the script lines for each sample as a nested list.
|
void |
checkDependencies()
|
void |
cleanUp()
|
String |
getSummary()
Produce summary message with min, max, mean, and median number of reads.
|
List<String> |
getWorkerScriptFunctions()
This method generates the required bash functions used by the worker scripts: "mergeReads"
|
getInputFiles, getSeqFiles, isValidInputModule
buildScriptForPairedReads, executeTask, getJobParams, getMainScript, getRuntimeParams, getScriptDir, getScriptErrors, getTimeout, hasScripts
cacheInputFiles, compareTo, equals, findModuleInputFiles, getFileCache, getID, getModuleDir, getOutputDir, getPostRequisiteModules, getPreRequisiteModules, getTempDir, init, toString, validateFileNameUnique
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
buildScriptForPairedReads, getJobParams, getMainScript, getScriptDir, getScriptErrors, getTimeout
executeTask, getID, getModuleDir, getOutputDir, getPostRequisiteModules, getPreRequisiteModules, getTempDir, init
public static final String NUM_MERGED_READS
protected static final String EXE_PEAR
Config
property "exe.pear" defines the command line PEAR executableprotected static final String EXE_PEAR_PARAMS
Config
property "exe.pearParams" is used to set the PEAR executable runtime parametersprotected static final String FUNCTION_PEAR_MERGE
public List<List<String>> buildScript(List<File> files) throws Exception
buildScript
in interface ScriptModule
buildScript
in class ScriptModuleImpl
files
- List of module input filesException
- if error occurs generating bash script linespublic void checkDependencies() throws Exception
checkDependencies
in interface BioModule
checkDependencies
in class ScriptModuleImpl
Exception
- thrown if missing or invalid dependencies are foundpublic void cleanUp() throws Exception
cleanUp
in interface BioModule
cleanUp
in class BioModuleImpl
Exception
- thrown if any runtime error occurspublic String getSummary() throws Exception
getSummary
in interface BioModule
getSummary
in class SeqModuleImpl
Exception
- if any error occurspublic List<String> getWorkerScriptFunctions() throws Exception
getWorkerScriptFunctions
in interface ScriptModule
getWorkerScriptFunctions
in class ScriptModuleImpl
Exception
- if errors occur