nexprs {scater} | R Documentation |
An efficient internal function that avoids the need to construct 'is_exprs_mat' by counting the number of expressed genes per cell on the fly.
nexprs(object, lowerDetectionLimit = 0, exprs_values = "counts", byrow = FALSE, subset_row = NULL, subset_col = NULL)
object |
a |
lowerDetectionLimit |
numeric scalar providing the value above which
observations are deemed to be expressed. Defaults to
|
exprs_values |
character scalar indicating whether the count data
( |
byrow |
logical scalar indicating if |
subset_row |
logical, integeror character vector indicating which rows
(i.e. features/genes) to use when calculating the number of expressed
features in each cell, when |
subset_col |
logical, integer or character vector indicating which columns
(i.e., cells) to use to calculate the number of cells expressing each gene
when |
a numeric vector of the same length as the number of features if
byrow
argument is TRUE
and the same length as the number of
cells if byrow
is FALSE
data("sc_example_counts") data("sc_example_cell_info") example_sce <- SingleCellExperiment( assays = list(counts = sc_example_counts), colData = sc_example_cell_info) nexprs(example_sce)[1:10] nexprs(example_sce, byrow = TRUE)[1:10]