Skip to contents

Check if there are enough mice per analysis subgroup across all regions. if the normalized counts data sets are split by specified grouping variables. This function also automatically keeps only the common regions that are found across all comparison groups.

Usage

enough_mice_per_group(
  e,
  by = c("group", "sex"),
  min_n = 5,
  remove = TRUE,
  log = TRUE
)

Arguments

e

experiment object

by

(str, default = c("group", "sex")) The mice attributes used to group the datasets into comparison groups.

min_n

(int, default = 5) The minimum number of mice in each group for region comparisons.

remove

(bool, TRUE) Remove any regions in the combined normalized count dataframes that don't have enough n to do a comparison on. These regions are removed across all comparison groups.

log

(bool, TRUE) Save the regions that don't have enough n into a '.csv' file in the output folder.

Value

e experiment object

Examples

e <- enough_mice_per_group(e, by = c("group", "sex"), min_n = 4, remove = TRUE, log = TRUE)
#> Error in enough_mice_per_group(e, by = c("group", "sex"), min_n = 4, remove = TRUE,     log = TRUE): object 'e' not found