droplet_counts_per_compartment | R Documentation |
Calculate count sums for subsets of columns in a matrix
droplet_counts_per_compartment(
matrix,
compartment,
sum_function = sum,
remaining_include = TRUE,
remaining_name = "empty"
)
matrix |
Count matrix |
compartment |
A named list of compartments and their barcodes (i.e. list("cells"=c("BC1", "BC2, ...), "debris"=c("BC101", "BC222, ...))) |
sum_function |
Function applied to each group of barcodes |
remaining_include |
Should barcodes that are not included in compartment list be included as its own compartment (i.e. for empty droplets) |
remaining_name |
If remaining barcodes are included as a compartment, what should it be called? |
Vector or matrix depending on the sum function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.