public class R_CalculateStats extends R_Module implements ApiModule
| 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"
|
GZIP_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 |
|---|
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"
|
String |
getCitationString()
At a minimum, this should return the name and/or url for the wrapped tool.
|
String |
getDescription()
Briefly describe what this module does.
|
protected String |
getModulePrefix()
Returns that prefix to use for property names.
|
protected String |
getModuleRScriptName() |
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.
|
protected Map<String,String> |
requiredRPackages() |
buildScript, calcTimeout, cleanUp, executeTask, getCustomScriptProp, getDockerImageName, getDockerImageOwner, getDockerImageTag, getFunctionLib, getFunctionLib, getModuleRScript, getTimeout, grapRUsedPropsbuildScriptForPairedReads, getJobParams, getMainScript, getRuntimeParams, getScriptDir, getScriptErrors, getSummary, getWorkerScriptFunctions, hasScripts, isValidPropaddGeneralProperty, addGeneralProperty, addGeneralProperty, addNewProperty, addNewProperty, cacheInputFiles, compareTo, equals, findModuleInputFiles, getAlias, getDescription, getDetails, getFileCache, getID, getInputFiles, getLogDir, getMenuPlacement, getMetadata, getModuleDir, getOutputDir, getPostRequisiteModules, getPreRequisiteModules, getPropDefault, getPropDescMap, getPropType, getPropTypeMap, getResourceDir, getTempDir, getTitle, hashCode, init, isValidInputModule, listProps, setAlias, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDescription, getDetails, getMenuPlacement, getPropType, getTitle, isValidProp, listPropscleanUp, executeTask, getAlias, getDockerImageName, getDockerImageOwner, getDockerImageTag, getID, getInputFiles, getLogDir, getMetadata, getModuleDir, getOutputDir, getPostRequisiteModules, getPreRequisiteModules, getPropDefault, getResourceDir, getSummary, getTempDir, init, isValidInputModule, setAlias, versionprotected 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 foundprotected Map<String,String> requiredRPackages()
requiredRPackages in class R_Modulepublic 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 filepublic String getDescription()
ApiModulegetDetails.getDescription in interface ApiModulepublic String getCitationString()
ApiModulegetCitationString in interface ApiModuleprotected String getModuleRScriptName()
getModuleRScriptName in class R_Moduleprotected String getModulePrefix()
R_ModulegetModulePrefix in class R_Module