Keeps genes whose variance across cells is at or above the var_quantile
quantile of the gene variances and that are detected (count > 0) in at
least a fraction min_nonzero of the cells. With the defaults this is the
filter used in the DenMark paper: the genes in the lowest 5 percent of
variance are dropped, and at least 5 percent of the cells must have a
non-zero count.
Examples
toy <- denmark_toy_data()
tumor <- subset(toy, celltype == "Tumor", select = -celltype)
denmark_filter_genes(tumor[, c("geneA", "geneB", "geneC")])
#> [1] "geneA" "geneB"