Generate spline comparison plots for all condition pairs
generate_spline_comparisons.Rd
This function generates spline comparison plots for all pairwise combinations of conditions in the metadata. For each condition pair, it compares the time effects of two conditions, plots the data points, and overlays the fitted spline curves. The function only generates plots if the adjusted p-values for the average difference between conditions and the interaction between condition and time are below the specified thresholds.
Usage
generate_spline_comparisons(
splineomics,
all_levels_clustering,
data,
meta,
condition,
plot_info,
adj_pthresh_avrg_diff_conditions,
adj_pthresh_interaction
)
Arguments
- splineomics
A list containing the splineomics results, including time effects, average difference between conditions, and interaction between condition and time.
- all_levels_clustering
A list containing the X matrices for each condition, used for spline fitting.
- data
The data matrix containing the measurements.
- meta
The metadata associated with the measurements, which includes the condition.
- condition
Column name of meta that contains the levels of the experiment.
- plot_info
A list containing plotting information such as time unit and axis labels.
- adj_pthresh_avrg_diff_conditions
The adjusted p-value threshold for the average difference between conditions.
- adj_pthresh_interaction
The adjusted p-value threshold for the interaction between condition and time.