agg_results: Aggregate results

View source: R/agg_results.R

agg_resultsR Documentation

Aggregate results

Description

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

Usage

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

Arguments

phenos

A data.table containing HPO IDs and other metadata.

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(filters = list(CellType="Microglia"))
agg_res <- agg_results(phenos = phenos)

neurogenomics/MultiEWCE documentation built on Sept. 28, 2024, 2:27 a.m.