public class JsonReport extends JavaModuleImpl
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 |
|---|
JsonReport() |
| Modifier and Type | Method and Description |
|---|---|
protected LinkedHashMap<String,TreeSet<JsonNode>> |
buildJsonMap(JsonNode rootNode)
Build JsonMap from the
CompileOtuCounts output directory. |
List<String> |
getPreRequisiteModules()
Module prerequisite:
CompileOtuCounts |
String |
getSummary()
Returns summary message to be displayed by Email module so must not contain confidential info.
|
boolean |
isValidInputModule(BioModule module)
If module is a
SeqModule input must contain sequence data. |
protected static boolean |
pipelineInputContainsOtuSummary()
Check pipeline input to see if OTU summary file is the only pipeline input file.
|
void |
runModule()
Obtain parsed sample data, build root node, and create the jsonMap by passing both to buildMap().
|
protected LinkedHashMap<String,TreeSet<JsonNode>> |
updateNodeStats(LinkedHashMap<String,TreeSet<JsonNode>> jsonMap,
File stats,
String level,
String label)
Add stats from
R_CalculateStats into all of the JsonNodes. |
protected String |
writeNodeAndChildren(JsonNode node,
boolean hasPeer,
LinkedHashMap<String,TreeSet<JsonNode>> jsonMap,
int nodeLevel)
Build lines of text output for the Json Report file.
|
buildScript, executeTask, getDockerImageName, getDockerImageOwner, getDockerImageTag, getWorkerScriptFunctions, markStatus, moduleComplete, moduleFailed, runBioLockJ_CMDbuildScriptForPairedReads, checkDependencies, getJobParams, getMainScript, getRuntimeParams, getScriptDir, getScriptErrors, getTimeout, hasScripts, isValidPropaddGeneralProperty, addGeneralProperty, addGeneralProperty, addNewProperty, addNewProperty, cacheInputFiles, cleanUp, compareTo, equals, findModuleInputFiles, getAlias, getDescription, getDetails, getFileCache, getID, getInputFiles, 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, getTimeoutcheckDependencies, cleanUp, getAlias, getID, getInputFiles, getLogDir, getMetadata, getModuleDir, getOutputDir, getPostRequisiteModules, getPropDefault, getResourceDir, getTempDir, init, setAlias, versionpublic List<String> getPreRequisiteModules() throws Exception
CompileOtuCountsgetPreRequisiteModules in interface BioModulegetPreRequisiteModules in class BioModuleImplException - if invalid Class names are returned as prerequisitespublic String getSummary() throws Exception
ScriptModuleImplgetSummary in interface BioModulegetSummary in class ScriptModuleImplException - if any error occurspublic boolean isValidInputModule(BioModule module)
JavaModuleImplSeqModule input must contain sequence data.isValidInputModule in interface BioModuleisValidInputModule in class JavaModuleImplmodule - BioModule that ran before the current BioModulepublic void runModule()
throws Exception
runModule in interface JavaModulerunModule in class JavaModuleImplException - thrown if any runtime error occursprotected LinkedHashMap<String,TreeSet<JsonNode>> buildJsonMap(JsonNode rootNode) throws Exception
CompileOtuCounts output directory.rootNode - Root JsonNode is top of the hierarchyException - if errors occurprotected LinkedHashMap<String,TreeSet<JsonNode>> updateNodeStats(LinkedHashMap<String,TreeSet<JsonNode>> jsonMap, File stats, String level, String label) throws Exception
R_CalculateStats into all of the JsonNodes.jsonMap - LinkedHashMap(level,Set(JsonNode))stats - Stats filelevel - Config."report.taxonomyLevels"label - Label to use in node statisticsException - if errors occurprotected String writeNodeAndChildren(JsonNode node, boolean hasPeer, LinkedHashMap<String,TreeSet<JsonNode>> jsonMap, int nodeLevel) throws Exception
node - JsonNode is the parent nodehasPeer - boolean is true if node has peer nodesjsonMap - LinkedHashMap(level,Set(JsonNode)) all nodes by levelnodeLevel - Config."report.taxonomyLevels"Exception - if errors occurprotected static boolean pipelineInputContainsOtuSummary()