public class RemoveLowOtuCounts extends OtuCountModule
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 |
---|
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, isValidInputModule
buildScript, executeTask, getSource, getWorkerScriptFunctions, markStatus, moduleComplete, moduleFailed
buildScriptForPairedReads, 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
getID, getModuleDir, getOutputDir, getPostRequisiteModules, getPreRequisiteModules, getTempDir, init
public void checkDependencies() throws Exception
ScriptModuleImpl
checkDependencies
in interface BioModule
checkDependencies
in class ScriptModuleImpl
Exception
- thrown if missing or invalid dependencies are foundpublic void cleanUp() throws Exception
ParserModuleImpl
OTU_COUNT field name.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 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 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