Nothing
bulk_stats <- function(bulkdata) {
bulkmean <- rowMeans(log2(bulkdata +1))
bulkvar <- matrixStats::rowVars(log2(bulkdata +1))
posit <- rowSums(bulkdata > 1) / ncol(bulkdata)
quant <- rank(bulkmean) / nrow(bulkdata)
bulk_stat <- matrix(c(bulkmean, bulkvar, quant, posit),
nrow = nrow(bulkdata),
dimnames = list(rownames(bulkdata),
c("mean", "var", "quantile", "prop_expr")))
}
check_bulk <- function(mk, bulk, log = TRUE, return_cormat = TRUE) {
if (log) bulk <- log2(bulk +1)
lapply(mk$best_angle, function(i) {
genes <- rownames(i)[seq_len(mk$opt$nsubclass)]
cormat <- cor(t(bulk[genes, ]))
diag(cormat) <- NA
if (return_cormat) return(cormat)
rowMeans(cormat, na.rm = TRUE)
})
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.