You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# row_labels = sub(".+:", "", rownames(jmat)), #get rid of study labels
111
125
column_labels = sub(".+:", "", colnames(jmat))
112
126
)
113
127
hm
@@ -116,8 +130,26 @@ hm
116
130
Use this interactively to make an interactive heatmap. Some expanding of the default size is required to see anything. Creating a sub-heatmap, then exporting it as a table, allows in-depth identification of the subgroups.
117
131
118
132
```{r, eval = FALSE}
133
+
#library(InteractiveComplexHeatmap)
134
+
#hm <- draw(hm)
135
+
#htShiny(hm)
136
+
# Interactive heatmap version
137
+
library(ComplexHeatmap)
119
138
library(InteractiveComplexHeatmap)
120
-
hm <- draw(hm)
139
+
siglengths <- siglengths[rownames(jmat)]
140
+
141
+
ha <- HeatmapAnnotation(`Signature Length` = anno_barplot(siglengths))
Create another heatmap on correlations of presence/absence of taxa. This is not necessary because the previous Jaccard Index heatmap is probably better, it is just a demonstration of doing something with the taxa presence/absence directly.
156
188
157
189
```{r, fig.width=20, fig.height=20}
190
+
library(ComplexHeatmap)
191
+
158
192
sigcors <- cor(t(cmat))
159
193
siglengths <- sapply(sigs, length)
194
+
195
+
# FIX: Ensure siglengths matches sigcors
196
+
siglengths <- siglengths[rownames(sigcors)]
197
+
160
198
ha <- HeatmapAnnotation(`Signature Length` = anno_barplot(siglengths))
0 commit comments