check_percent_hits: Get percentage of target cell type hits

View source: R/check_percent_hits.R

check_percent_hitsR Documentation

Get percentage of target cell type hits

Description

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

Usage

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

Arguments

full_results

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

## Bootstrap significance test,
##  no control for transcript length or GC content
## Use pre-computed results to speed up example
full_results <- EWCE::example_bootstrap_results()

report <- EWCE::check_percent_hits(
    full_results = full_results,
    target_celltype = "microglia"
)

NathanSkene/EWCE documentation built on Nov. 3, 2024, 8:16 a.m.