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
)
dataframe of phenotypes and values / parameters.
Variable to get counts for per group_var
.
Variable to group counts by.
Separator for collapsed character columns.
Print messages.
Aggregated data.table
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'