# 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)
/*
* Create a heat map of the top 25 most upregulated genes based on time and condition.
* Gene-wise max value based calculation.
*/
de_heat(res_list=myResList, anno_columns=c("Time", "Condition"), sort_choice="max",
numGenes=25, theme=2, returnData=FALSE)
/*
* Create a heat map of the top 50 most downregulated genes based on time and condition.
* Mean based value calculation.
*/
de_heat(res_list=myResList, anno_columns=c("Time", "Condition"), sort_choice="min_mean",
numGenes=50, theme=2, returnData=FALSE)
/*
* Create a heat map of the top 100 most highly varying genes based on time and response.
* Variance based value calculation.
*/
de_heat(res_list=myResList, anno_columns=c("Time", "Response"), sort_choice="variance",
numGenes=100, theme=2, returnData=FALSE)
/*
* Plot 3 specific genes, dont cluster by contrast.
*/
de_heat(res_list=myResList, anno_columns=c("Time", "Response"), sort_choice="variance",
specific_genes=c("GEN1", "ABC2", "FuSG2"), theme=2, cluster_contrasts=FALSE)
# }
Run the code above in your browser using DataLab