public class RemoveScarcePathwayCounts extends Humann2CountModule
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 |
---|
RemoveScarcePathwayCounts() |
Modifier and Type | Method and Description |
---|---|
void |
checkDependencies()
|
String |
getSummary()
Produce summary message with min, max, mean, and median number of pathways.
|
protected void |
logScarceData(TreeMap<String,TreeSet<String>> map,
File file)
Save a list of low count pathways or samples to the module temp directory.
|
protected TreeMap<String,TreeSet<String>> |
removeScarcePathwayCounts(File file,
Set<String> scarcePathways)
Remove Pathway Counts below the
Config ."report.minCount" |
void |
runModule()
This method executes the modules primary Java routine.
|
getInputFiles, getPreRequisiteModules, isHumann2CountModule, isValidInputModule
buildScript, executeTask, getSource, getWorkerScriptFunctions, markStatus, moduleComplete, moduleFailed
buildScriptForPairedReads, getJobParams, getMainScript, getRuntimeParams, getScriptDir, getScriptErrors, getTimeout, hasScripts
cacheInputFiles, cleanUp, compareTo, equals, findModuleInputFiles, getFileCache, getID, getModuleDir, getOutputDir, getPostRequisiteModules, getTempDir, init, toString, validateFileNameUnique
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
buildScriptForPairedReads, getJobParams, getMainScript, getScriptDir, getScriptErrors, getTimeout
cleanUp, getID, getModuleDir, getOutputDir, getPostRequisiteModules, getTempDir, init
public void checkDependencies() throws Exception
ScriptModuleImpl
checkDependencies
in interface BioModule
checkDependencies
in class Humann2CountModule
Exception
- thrown if missing or invalid dependencies are foundpublic 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 logScarceData(TreeMap<String,TreeSet<String>> map, File file) throws Exception
map
- TreeMap(sampleId, TreeSet(data)) of Pathways found in too few samples or pathwaysfile
- Output fileException
- if errors occurprotected TreeMap<String,TreeSet<String>> removeScarcePathwayCounts(File file, Set<String> scarcePathways) throws Exception
Config
."report.minCount"file
- input filescarcePathways
- Set of pathway names to be eliminatedException
- if errors occur