Combine cell counts across all mice in an experiment into a single dataframe.
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
e <- combine_cell_counts(e, by = c('groups', 'sex'))
#> Error in combine_cell_counts(e, by = c("groups", "sex")): object 'e' not found