Description Usage Arguments Value Author(s) Examples
Computes the complexity, i.e. the number of genes with count greater than zero for each cell (column).
1 2 3 4 5 6 | compute_complexity(
x,
return_sorted = FALSE,
cell_subset = NULL,
verbose = FALSE
)
|
x |
a numeric matrix or Matrix object. |
return_sorted |
should the result be returned sorted. Default is FALSE. |
cell_subset |
a vector of cell IDs for which the complexity should be calculated. Default is NULL. |
verbose |
suppresses all messages from this function. Default is FALSE. |
A named vector of complexity per cell ID.
Avishay Spitzer
1 2 3 4 5 | m <- matrix(c(10, 0, 2, 3, 0, 0, 1, 15, 3), nrow = 3, ncol = 3)
c <- compute_complexity(m) # 2, 1, 3
c <- compute_complexity(m, cell_subset = c(1, 3)) # 2, 3
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.