-
Notifications
You must be signed in to change notification settings - Fork 0
/
Heatmap_4_2_2019.R
46 lines (43 loc) · 1.58 KB
/
Heatmap_4_2_2019.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
library(superheat)
#Load data set containing LOGFC counts
geneCounts=read.csv("HeatmapMatrix_log2fc_EVxEC_EUCDIST_1.5stddev_and_beyond.csv")
geneCounts=geneCounts[which(!duplicated(geneCounts[,1])),]
row.names(geneCounts)=geneCounts[,1]
geneNames=row.names(geneCounts)
geneCounts=geneCounts[,2:dim(geneCounts)[2]]
geneCounts=as.matrix(geneCounts)
#Scales by converting your data to a [0,1] quantile-preserving scale, or simply by mean-centering.
#Not enabled here.
tiff("DEGs Highest Variability ETOH(VEH) vs. H2O(VEH).tiff", units="px", res=300)
par(mar = c(10, 10, 10, 10))
superheat(geneCounts,
scale= FALSE,
pretty.order.cols = FALSE,
pretty.order.rows = FALSE,
heat.pal = c("red", "light gray", "blue"),
heat.pal.values = c(0, 0.5, 1.322),
heat.lim = c(-2.05, 2.05),
row.dendrogram = FALSE,
col.dendrogram = FALSE,
title = "DEGs Highest Variability ETOH(VEH) vs. H2O(VEH)",
title.size = 9,
row.title= "Genes",
row.title.size = 12,
column.title = "Treatment Groups",
column.title.size = 12,
bottom.label.text.size = 10,
grid.hline = FALSE,
grid.vline = TRUE,
grid.hline.col =,
grid.vline.col = "white",
grid.hline.size = ,
grid.vline.size = 1,
legend.height = 0.4,
legend.width = 4,
legend.text.size = 30,
bottom.label.text.angle = 90,
padding = 1,
left.label.text.size = 8,
left.label.text.alignment = 'right'
)
dev.off()