Combine cell counts across all mice in an experiment into a single dataframe.
Source:R/mapping_functions.R
combine_cell_counts.Rd
This function also stores the mouse attribute names (not experiment attributes) as columns that will be used as categorical variables to make analysis subgroups.
The values of these attributes (group
, drug
, age
) will automatically be converted to a string values for consistency.
Arguments
- e
experiment object
- by
(str) names of the experiment attributes (categorical variables) that will be used to create analysis subgroups.
Examples
if (FALSE) {
e <- combine_cell_counts(e, by = c('groups', 'sex'))
}