public class MergeQiimeOtuTables extends ScriptModuleImpl
Modifier and Type | Field and Description |
---|---|
protected static String |
SCRIPT_MERGE_OTU_TABLES
QIIME script to merge multiple OTU tables in biom format.
|
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 |
---|
MergeQiimeOtuTables() |
Modifier and Type | Method and Description |
---|---|
List<List<String>> |
buildScript(List<File> files)
Build a single bash script line to call "merge_otu_tables.py" to create the single
"otu_table.biom", as required by
QiimeParser . |
void |
checkDependencies()
Verify the previous module =
QiimeClosedRefClassifier |
void |
executeTask()
Call
buildScript(List) to create bash script lines needed to merge
"otu_table.biom"s with "merge_otu_tables.py" unless
only 1 input file found, in which case, just copy it to the output dir. |
buildScriptForPairedReads, getJobParams, getMainScript, getRuntimeParams, getScriptDir, getScriptErrors, getSummary, getTimeout, getWorkerScriptFunctions, hasScripts
cacheInputFiles, cleanUp, compareTo, equals, findModuleInputFiles, getFileCache, getID, getInputFiles, getModuleDir, getOutputDir, getPostRequisiteModules, getPreRequisiteModules, getTempDir, init, isValidInputModule, toString, validateFileNameUnique
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
cleanUp, getID, getInputFiles, getModuleDir, getOutputDir, getPostRequisiteModules, getPreRequisiteModules, getTempDir, init, isValidInputModule
protected static final String SCRIPT_MERGE_OTU_TABLES
public List<List<String>> buildScript(List<File> files) throws Exception
QiimeParser
.buildScript
in interface ScriptModule
buildScript
in class ScriptModuleImpl
files
- Files in the input directory that contain only forward readsException
- if unable to generate script linespublic void checkDependencies() throws Exception
QiimeClosedRefClassifier
checkDependencies
in interface BioModule
checkDependencies
in class ScriptModuleImpl
Exception
- thrown if missing or invalid dependencies are foundpublic void executeTask() throws Exception
buildScript(List)
to create bash script lines needed to merge
"otu_table.biom"s with "merge_otu_tables.py" unless
only 1 input file found, in which case, just copy it to the output dir.executeTask
in interface BioModule
executeTask
in class ScriptModuleImpl
Exception
- thrown if the module is unable to complete is task