Description Usage Arguments Value Author(s) See Also Examples
Computes the number of detected expression values (by default, defined as non-zero counts)
for each feature in each group of cells.
This function is deprecated: use summarizeAssayByGroup
instead.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | numDetectedAcrossCells(x, ...)
## S4 method for signature 'ANY'
numDetectedAcrossCells(
x,
ids,
subset.row = NULL,
subset.col = NULL,
store.number = "ncells",
average = FALSE,
threshold = 0,
BPPARAM = SerialParam(),
subset_row = NULL,
subset_col = NULL,
store_number = NULL,
detection_limit = NULL
)
## S4 method for signature 'SummarizedExperiment'
numDetectedAcrossCells(x, ..., assay.type = "counts", exprs_values = NULL)
|
x |
A numeric matrix of counts containing features in rows and cells in columns. Alternatively, a SummarizedExperiment object containing such a count matrix. |
... |
For the generic, further arguments to pass to specific methods. For the SummarizedExperiment method, further arguments to pass to the ANY method. |
ids |
A factor specifying the group to which each cell in |
subset.row |
An integer, logical or character vector specifying the features to use.
If |
subset.col |
An integer, logical or character vector specifying the cells to use.
Defaults to all cells with non- |
store.number |
String specifying the field of the output |
average |
Logical scalar indicating whether the proportion of non-zero counts in each group should be computed instead. |
threshold |
A numeric scalar specifying the threshold above which a gene is considered to be detected. |
BPPARAM |
A BiocParallelParam object specifying whether summation should be parallelized. |
subset_row |
Soft-deprecated equivalents to the arguments described above. |
subset_col |
Soft-deprecated equivalents to the arguments described above. |
store_number |
Soft-deprecated equivalents to the arguments described above. |
assay.type |
A string or integer scalar specifying the assay of |
exprs_values, detection_limit |
Soft-deprecated equivalents of the arguments above. |
A SummarizedExperiment is returned containing a count matrix in the first assay.
Each column corresponds to group as defined by a unique level or combination of levels in ids
.
Each entry of the matrix contains the number of cells with detected expression for a feature and group.
The identities of the levels for each column are reported in the colData
.
If average=TRUE
, the assay is instead a numeric matrix containing the proportion of detected values.
Aaron Lun
sumCountsAcrossCells
, which computes the sum of counts within a group.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.