public class RemoveScarcePathwayCounts extends Humann2CountModule
BLJ_OPTIONSGZIP_EXT, LOG_EXT, PDF_EXT, RETURN, SH_EXT, TAB_DELIM, TSV_EXT, TXT_EXTLOG_DIR, MAIN_SCRIPT_PREFIX, NO_VERSION, OUTPUT_DIR, RES_DIR, TEMP_DIR| Constructor and Description |
|---|
RemoveScarcePathwayCounts() |
| 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 |
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, isValidInputModulebuildScript, executeTask, getDockerImageName, getDockerImageOwner, getDockerImageTag, getWorkerScriptFunctions, markStatus, moduleComplete, moduleFailed, runBioLockJ_CMDbuildScriptForPairedReads, getJobParams, getMainScript, getRuntimeParams, getScriptDir, getScriptErrors, getTimeout, hasScripts, isValidPropaddGeneralProperty, 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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitbuildScriptForPairedReads, getJobParams, getMainScript, getScriptDir, getScriptErrors, getTimeoutcleanUp, getAlias, getID, getLogDir, getMetadata, getModuleDir, getOutputDir, getPostRequisiteModules, getPropDefault, getResourceDir, getTempDir, init, setAlias, versionpublic void checkDependencies()
throws Exception
ScriptModuleImplConfig. exists
Config. is positive integer
Config. is positive integer
Config. is positive integer if set
checkDependencies in interface BioModulecheckDependencies in class Humann2CountModuleException - thrown if missing or invalid dependencies are foundpublic 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 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