# NOT RUN {
#Prepare a result list for aggregation.
res.day1 <- results(dds, contrast=c("Condition_Time", "day1_disease", "day1_control"))
res.day2 <- results(dds, contrast=c("Condition_Time", "day2_disease", "day2_control"))
res.day3 <- results(dds, contrast=c("Condition_Time", "day3_disease", "day3_control"))
myResList <- list(res.day1, res.day2, res.day3)
/*
* Data for all result sets will be included for each gene if that gene was found to be
* differentially expressed in at least one of the provided result sets.
* Filter based on a minimum fold-change.
*/
aggregated_lfc_union <- get_de_data(res_list=myResList, method="union",
type="lfc", lfc_filter=TRUE)
aggregated_pval_union <- get_de_data(res_list=myResList, method="union",
type="padj", lfc_filter=TRUE)
/*
* Data for all result sets will be included for each gene only if that gene was found to
* be differentially expressed in all provided result sets. Do not apply a fold-change filter.
* Significance is determined only by p-value threshold.
*/
aggregated_lfc_intersect <- get_de_data(res_list=myResList, method="intersection",
type="lfc", lfc_filter=FALSE)
aggregated_pval_intersect <- get_de_data(res_list=myResList, method="intersection",
type="padj", lfc_filter=FALSE)
# }
Run the code above in your browser using DataLab