public class CompileOtuCounts extends OtuCountModule
Modifier and Type | Field and Description |
---|---|
static String |
SUMMARY
Output file prefix: "summary"
|
BLJ_OPTIONS
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 |
---|
CompileOtuCounts() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildSummaryOtuCountFile(TreeMap<String,Long> otuCounts)
Build Summary OTU count file for all samples.
|
protected TreeMap<String,Long> |
compileOtuCounts(Collection<File> files)
Compile OTU counts from the individual sample OTU count files
|
protected String |
getMaxOtusPerSample()
Find the maximum OTU count per sample.
|
protected String |
getMinOtusPerSample()
Find the minimum OTU count per sample.
|
String |
getSummary()
Add summary with unique OTU counts/level.
|
protected File |
getSummaryOtuFile()
Get the summary output file
|
void |
runModule()
This method executes the modules primary Java routine.
|
getInputFiles, isOtuModule, isValidInputModule
buildScript, executeTask, getSource, getWorkerScriptFunctions, markStatus, moduleComplete, moduleFailed
buildScriptForPairedReads, checkDependencies, getJobParams, getMainScript, getRuntimeParams, getScriptDir, getScriptErrors, getTimeout, hasScripts
cacheInputFiles, cleanUp, 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
checkDependencies, cleanUp, getID, getModuleDir, getOutputDir, getPostRequisiteModules, getPreRequisiteModules, getTempDir, init
public static final String SUMMARY
public String getSummary() throws Exception
getSummary
in interface BioModule
getSummary
in class ScriptModuleImpl
Exception
- if any error occurspublic void runModule() throws Exception
JavaModule
runModule
in interface JavaModule
runModule
in class JavaModuleImpl
Exception
- thrown if any runtime error occursprotected void buildSummaryOtuCountFile(TreeMap<String,Long> otuCounts) throws Exception
otuCounts
- OTU-count mappingException
- if errors occurprotected TreeMap<String,Long> compileOtuCounts(Collection<File> files) throws Exception
files
- Collection of OTU count filesException
- if errors occurprotected String getMaxOtusPerSample()
protected String getMinOtusPerSample()
protected File getSummaryOtuFile()