public class RemoveLowPathwayCounts extends Humann2CountModule
BLJ_OPTIONS
GZIP_EXT, LOG_EXT, PDF_EXT, RETURN, SH_EXT, TAB_DELIM, TSV_EXT, TXT_EXT
LOG_DIR, MAIN_SCRIPT_PREFIX, NO_VERSION, OUTPUT_DIR, RES_DIR, TEMP_DIR
Constructor and Description |
---|
RemoveLowPathwayCounts() |
Modifier and Type | Method and Description |
---|---|
void |
checkDependencies()
Validate module dependencies:
Require
Config . exists
Require Config . is positive integer
Require Config . is positive integer
Verify Config . is positive integer if set
Start the AWS DB sync to S3 if a novel DB has been configure and
"aws.copyDbToS3" is enabled
|
String |
getSummary()
Produce summary message with min, max, mean, and median number of pathways.
|
protected void |
logLowCountPathways(TreeMap<String,TreeSet<String>> map)
Save a list of low count pathways to the module temp directory.
|
protected TreeMap<String,TreeSet<String>> |
removeLowPathwayCounts(File file)
Remove Pathway Counts below the
Config ."report.minCount" |
void |
runModule()
This method executes the modules primary Java routine.
|
getInputFiles, getPreRequisiteModules, isHumann2CountModule, isValidInputModule
buildScript, executeTask, getDockerImageName, getDockerImageOwner, getDockerImageTag, getWorkerScriptFunctions, markStatus, moduleComplete, moduleFailed, runBioLockJ_CMD
buildScriptForPairedReads, getJobParams, getMainScript, getRuntimeParams, getScriptDir, getScriptErrors, getTimeout, hasScripts, isValidProp
addGeneralProperty, addGeneralProperty, addGeneralProperty, addNewProperty, addNewProperty, cacheInputFiles, cleanUp, compareTo, equals, findModuleInputFiles, getAlias, getDescription, getDetails, getFileCache, getID, getLogDir, getMenuPlacement, getMetadata, getModuleDir, getOutputDir, getPostRequisiteModules, getPropDefault, getPropDescMap, getPropType, getPropTypeMap, getResourceDir, getTempDir, getTitle, hashCode, init, listProps, setAlias, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
buildScriptForPairedReads, getJobParams, getMainScript, getScriptDir, getScriptErrors, getTimeout
cleanUp, getAlias, getID, getLogDir, getMetadata, getModuleDir, getOutputDir, getPostRequisiteModules, getPropDefault, getResourceDir, getTempDir, init, setAlias, version
public void checkDependencies() throws Exception
ScriptModuleImpl
Config
. exists
Config
. is positive integer
Config
. is positive integer
Config
. is positive integer if set
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 logLowCountPathways(TreeMap<String,TreeSet<String>> map) throws Exception
map
- TreeMap(sampleId, TreeSet(Pathway)) of Pathways found in too few samplesException
- if errors occurprotected TreeMap<String,TreeSet<String>> removeLowPathwayCounts(File file) throws Exception
Config
."report.minCount"file
- Input fileException
- if errors occur