After you run bootstrap_enrichment_test, check what percentage of significantly enriched cell types match an expected cell type.

check_percent_hits(
  boot_res,
  target_celltype,
  mtc_method = "bonferroni",
  q_threshold = 0.05,
  verbose = TRUE
)

Arguments

boot_res

bootstrap_enrichment_test results.

target_celltype

Substring to search to matching cell types (case-insensitive).

mtc_method

Multiple-testing correction method.

q_threshold

Corrected significance threshold.

verbose

Print messages.

Value

Report list.

Examples

full_results <- EWCE::example_bootstrap_results() report <- EWCE::check_percent_hits( boot_res = full_results, target_celltype = "microglia" )
#> 7 signficiant enrichment results @ bonferroni < 0.05
#> 14.3% of hits are of the target cell type.