Description Usage Arguments Details Value
View source: R/var_filter_counts.R
This function filters a counts object, keeping the n_keep
genes with the highest variance.
1 2 3 | var_filter_counts(
counts, counts, n_keep=8000, genes="rows",
log2_transform=FALSE)
|
counts |
a matrix or data frame of gene expression counts. |
n_keep |
integer, the maximum number of genes to retain |
genes |
character string, the dimension of |
log2_transform |
boolean, whether to log2 transform the counts prior to variance filtering. If the counts have not already been transformed, should be set to |
Variance is calculated for all genes. Genes are then ranked by this variance, and the n_keep
genes with highest variance are retained.
a matrix or data frame with the same number of samples as counts
, but possibly with fewer genes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.