public class RemoveLowOtuCounts extends OtuCountModule
BLJ_OPTIONSGZIP_EXT, LOG_EXT, PDF_EXT, RETURN, SH_EXT, TAB_DELIM, TSV_EXT, TXT_EXTSCRIPT_BATCH_SIZE, SCRIPT_DEFAULT_HEADER, SCRIPT_NUM_THREADS, SCRIPT_PERMISSIONS, SCRIPT_TIMEOUTMAIN_SCRIPT_PREFIX, OUTPUT_DIR, TEMP_DIR| Constructor and Description |
|---|
RemoveLowOtuCounts() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkDependencies()
|
void |
cleanUp()
Update
ParserModuleImpl OTU_COUNT field name. |
String |
getSummary()
Produce summary message with min, max, mean, and median number of reads.
|
protected void |
logLowCountOtus(TreeMap<String,TreeSet<String>> lowCountOtus)
Save a list of low count OTUs to the module temp directory.
|
protected TreeMap<String,TreeSet<String>> |
removeLowOtuCounts(TreeMap<String,TreeMap<String,Long>> sampleOtuCounts)
Remove OTUs below the
Config. |
void |
runModule()
This method executes the modules primary Java routine.
|
getInputFiles, isOtuModule, isValidInputModulebuildScript, executeTask, getSource, getWorkerScriptFunctions, markStatus, moduleComplete, moduleFailedbuildScriptForPairedReads, getJobParams, getMainScript, getRuntimeParams, getScriptDir, getScriptErrors, getTimeout, hasScriptscacheInputFiles, compareTo, equals, findModuleInputFiles, getFileCache, getID, getModuleDir, getOutputDir, getPostRequisiteModules, getPreRequisiteModules, getTempDir, init, toString, validateFileNameUniqueclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbuildScriptForPairedReads, getJobParams, getMainScript, getScriptDir, getScriptErrors, getTimeoutgetID, getModuleDir, getOutputDir, getPostRequisiteModules, getPreRequisiteModules, getTempDir, initpublic void checkDependencies()
throws Exception
ScriptModuleImplcheckDependencies in interface BioModulecheckDependencies in class ScriptModuleImplException - thrown if missing or invalid dependencies are foundpublic void cleanUp()
throws Exception
ParserModuleImpl OTU_COUNT field name.cleanUp in interface BioModulecleanUp in class BioModuleImplException - thrown if any runtime error occurspublic String getSummary() throws Exception
getSummary in interface BioModulegetSummary in class ScriptModuleImplException - if any error occurspublic void runModule()
throws Exception
JavaModulerunModule in interface JavaModulerunModule in class JavaModuleImplException - thrown if any runtime error occursprotected void logLowCountOtus(TreeMap<String,TreeSet<String>> lowCountOtus) throws Exception
lowCountOtus - TreeMap(sampleId, TreeSet(OTU)) of OTUs found in too few samplesException - if errors occurprotected TreeMap<String,TreeSet<String>> removeLowOtuCounts(TreeMap<String,TreeMap<String,Long>> sampleOtuCounts) throws Exception
Config.sampleOtuCounts - TreeMap(SampleId, TreeMap(OTU, count)) OTU counts for every sampleException - if errors occur