Aggregate enrichment results from generated by gen_results. Counts unique entries in count_var while grouping by group_var.

agg_results(
  phenos,
  count_var = "hpo_name",
  group_var = "CellType",
  sep = "; ",
  verbose = TRUE
)

Arguments

phenos

dataframe of phenotypes and values / parameters.

count_var

Variable to get counts for per group_var.

group_var

Variable to group counts by.

sep

Separator for collapsed character columns.

verbose

Print messages.

Value

Aggregated data.table

Examples

phenos <- subset_results(cell_type = "Microglia")
#> Subsetting results by q_threshold and fold_change.
#> Subsetting results by cell_type
#> 2,719 associations remain after filtering.
agg_res <- agg_results(phenos = phenos)
#> Aggregating results by group_var='CellType'