TSENATAnalysis S4 Class Definition
Source:R/AllClasses.R, R/TSENATAnalysis_methods.R
TSENATAnalysis-class.RdCentral container for unified analysis workflows in TSENAT.
Value
A new TSENATAnalysis object containing only the specified
genes and samples, with all associated results and metadata preserved.
Details
The TSENATAnalysis class encapsulates all components of a complete
TSENAT analysis: raw data, configuration metadata, and results from each
analytical step. This unified object ensures metadata is never lost through
the analysis pipeline and provides consistent accessor methods for result
retrieval.
Access results via the unified results(obj, type = ...) accessor method:
- type='diversity' for Tsallis entropy across q-values
- type='lm' for linear model interaction results
- type='rank_test' for Scheirer-Ray-Hare rank-based test results
- type='divergence' for divergence metrics
- type='jackknife' for jackknife resampling results
Use metadata(obj) to access reproducibility metadata.
Slots
seSummarizedExperiment. The base expression data object (genes x samples) with assays and colData.configlist. Configuration metadata specifying analysis parameters that persist through the workflow (q-values, sample grouping columns, etc.). Set once viaTSENAT_config()and used by all downstream wrapper functions.diversity_resultslist. Named list of diversity calculation results. Each name corresponds to a q-value (e.g., 'q_0.5', 'q_1.0'). Values are SummarizedExperiment objects or data.frames containing entropy values for each gene at that q-value.lm_resultslist. Complex results from linear model and statistical testing. Top-level names identify analysis type:lm_interactionLM/GAM/GEE model results (list with
$resultsdata.frame,$modelslist, etc.)rank_testScheirer-Ray-Hare rank-based test results
divergence_differenceDifferential divergence comparison
pairwise_resultslist. Pairwise group comparison results. Results from running statistical tests for group comparisons.rank_test_resultslist. Scheirer-Ray-Hare rank-based statistical test results. Names correspond to q-values (e.g., 'q_0.5', 'q_1.0'). Computed bycalculate_srh()as a non-parametric alternative to linear mixed model testing.jackknife_resultslist. Resampling-based confidence intervals. Names correspond to q-values (e.g., 'q_0.5', 'q_1.0'). Values are jackknife result objects containing resamples, CI bounds, and diagnostics.divergence_resultslist. Divergence metric calculations. Typically contains:tsallis_divergenceSummarizedExperiment with divergence values
effect_sizesdata.frame with Cohen's d, etc.
plotslist. Cached visualization objects (ggplot). Names identify plot type (e.g., 'q_curve', 'lm_interaction', 'influence'). Populated byTSENAT()ifgenerate_plots=TRUE.metadatalist. Reproducibility and tracking metadata. Automatically maintained by wrapper functions. Includes:created_atTimestamp of object creation
function_callsVector of wrapper functions called
function_timestampsTimestamps for each function call
package_versionTSENAT version at creation