public class R_CalculateStats extends R_Module
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ADJ_PVAL_ATTRIBUTE
This "r_CalculateStats.pAdjustMethod" option can be set in
Config file: "ATTRIBUTE" |
protected static String |
ADJ_PVAL_GLOBAL
This "r_CalculateStats.pAdjustMethod" option can be set in
Config file: "GLOBAL" |
protected static String |
ADJ_PVAL_LOCAL
This "r_CalculateStats.pAdjustMethod" option can be set in
Config file: "LOCAL" |
protected static String |
ADJ_PVAL_TAXA
This "r_CalculateStats.pAdjustMethod" option can be set in
Config file: "TAXA" |
protected static String |
P_VALS_NP
Non parametric p-value identifier: "nonParametricPvals"
|
protected static String |
P_VALS_NP_ADJ
Non parametric adjusted p-value identifier: "adjNonParPvals"
|
protected static String |
P_VALS_PAR
Parametric p-value identifier: "parametricPvals"
|
protected static String |
P_VALS_PAR_ADJ
Parametric adjusted p-value identifier: "adjParPvals"
|
protected static String |
R_ADJ_PVALS_SCOPE
Config String property: "r_CalculateStats.pAdjustScope" defines R p.adjust( n ) parameter. |
protected static String |
R_PVAL_ADJ_METHOD
Config String property: "r_CalculateStats.pAdjustMethod" defines p.adjust( method ) parameter. |
protected static String |
R_SQUARED_VALS
R^2 identifier: "rSquaredVals"
|
EXE_RSCRIPT, P_VAL_CUTOFF, R_COLOR_BASE, R_COLOR_HIGHLIGHT, R_COLOR_PALETTE, R_COLOR_POINT, R_DEBUG, R_FUNCTION_LIB, R_MAIN_SCRIPT, R_PCH, R_RARE_OTU_THRESHOLD, R_SAVE_R_DATA, R_TIMEOUTGZIP_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 |
|---|
R_CalculateStats() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkDependencies()
Validate configuration file properties used to build the R report:
super.checkDependencies()
Require "r_CalculateStats.pAdjustScope"
Require "r_CalculateStats.pAdjustMethod"
|
static File |
getStatsFile(BioModule module,
String level,
Boolean isParametric,
Boolean isAdjusted)
Get the stats file for the given fileType and taxonomy level.
|
static String |
getSuffix(Boolean isParametric,
Boolean isAdjusted)
Get the file name suffix used to specify types of statistics.
|
static boolean |
isStatsFile(File file)
Analyze file name for key strings to determine if file is a stats file output by this module.
|
buildDockerBashScript, buildScript, executeTask, getJobParams, getMainR, getMetaMergedModule, getModuleScript, getPreRequisiteModules, getPrimaryScript, getRTemplateDir, getStatPreReqs, getSummary, getTimeout, getWorkerScriptFunctions, writeNewScript, writePrimaryScript, writeScriptbuildScriptForPairedReads, getMainScript, getRuntimeParams, getScriptDir, getScriptErrors, hasScriptscacheInputFiles, cleanUp, compareTo, equals, findModuleInputFiles, getFileCache, getID, getInputFiles, getModuleDir, getOutputDir, getPostRequisiteModules, getTempDir, init, isValidInputModule, toString, validateFileNameUniqueclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcleanUp, getID, getInputFiles, getModuleDir, getOutputDir, getPostRequisiteModules, getTempDir, init, isValidInputModuleprotected static final String ADJ_PVAL_ATTRIBUTE
Config file: "ATTRIBUTE"protected static final String ADJ_PVAL_GLOBAL
Config file: "GLOBAL"protected static final String ADJ_PVAL_LOCAL
Config file: "LOCAL"protected static final String ADJ_PVAL_TAXA
Config file: "TAXA"protected static final String P_VALS_NP
protected static final String P_VALS_NP_ADJ
protected static final String P_VALS_PAR
protected static final String P_VALS_PAR_ADJ
protected static final String R_ADJ_PVALS_SCOPE
Config String property: "r_CalculateStats.pAdjustScope" defines R p.adjust( n ) parameter. There are
4 supported options:
protected static final String R_PVAL_ADJ_METHOD
Config String property: "r_CalculateStats.pAdjustMethod" defines p.adjust( method ) parameter.
p.adjust.methods = c("holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr", "none")protected static final String R_SQUARED_VALS
public void checkDependencies()
throws Exception
checkDependencies in interface BioModulecheckDependencies in class R_ModuleException - thrown if missing or invalid dependencies are foundpublic static File getStatsFile(BioModule module, String level, Boolean isParametric, Boolean isAdjusted) throws Exception
module - Calling modulelevel - Taxonomy levelisParametric - Boolean TRUE to query for parametric fileisAdjusted - Boolean TRUE to query for adjusted p-value fileException - if errors occurpublic static String getSuffix(Boolean isParametric, Boolean isAdjusted) throws Exception
isParametric - boolean get the Parametric rather than the non-parametric suffix. If null, get the r-squared
suffix.isAdjusted - boolean get the adjusted rather than the non-adjusted suffixException - if errors occurpublic static boolean isStatsFile(File file)
file - Ambiguous file