distSample | R Documentation |
The function distSample
creates a heatmap from a distance matrix
created by the function distShiny
. The heatmap is annotated by the
column specified by the label
column in colData(se)
.
distSample(d, se, label = "name", title = "raw", ...)
d |
|
se |
|
label |
|
title |
|
... |
further arguments passed to |
Internal use in shinyQC
Heatmap
object from ComplexHeatmap
## create se
a <- matrix(seq_len(100), nrow = 10, ncol = 10,
dimnames = list(seq_len(10), paste("sample", seq_len(10))))
a[c(1, 5, 8), seq_len(5)] <- NA
set.seed(1)
a <- a + rnorm(100)
a_i <- imputeAssay(a, method = "MinDet")
cD <- data.frame(name = colnames(a_i),
type = c(rep("1", 5), rep("2", 5)))
rD <- data.frame(spectra = rownames(a_i))
se <- SummarizedExperiment::SummarizedExperiment(assay = a_i, rowData = rD,
colData = cD)
dist <- distShiny(a_i)
distSample(dist, se, label = "type", title = "imputed",
show_row_names = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.