.nonzeroGenes <- function(object) {
raw <- counts(object, normalized = FALSE)
nonzero <- rowSums(raw) > 0L
genes <- rownames(raw[nonzero, , drop = FALSE])
message(paste(length(genes), "non-zero genes detected"))
sort(genes)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.