
Post-DEA Analysis and Diagnostics
dea_analysis.RdThis function takes the fitted model object from the DEA analysis and performs post-analysis diagnostics. It generates several plots to visualize the results, including a Venn diagram of DEGs, a histogram of p-values, and a mean-difference (MD) plot. The function also returns a matrix indicating which genes are differentially expressed based on the specified p-value and log-fold change thresholds. The generated plots are saved in a "DEA_plots" subdirectory within the specified output directory.