XGR uses a binomial enrichment tests for each annotation.

XGR_iterate_enrichment(
  dat,
  foreground_filter = "Consensus_SNP",
  background_filter = "leadSNP",
  lib.selections = c("ENCODE_TFBS_ClusteredV3_CellTypes",
    "ENCODE_DNaseI_ClusteredV3_CellTypes", "Broad_Histone", "FANTOM5_Enhancer",
    "Segment_Combined_Gm12878", "TFBS_Conserved", "ReMap_PublicAndEncode_TFBS",
    "Blueprint_VenousBlood_Histone", "Blueprint_DNaseI", "FANTOM5_CAT_Cell",
    "FANTOM5_CAT_MESH", "GWAScatalog_alltraits"),
  save_path = FALSE,
  nThread = 1
)

Arguments

dat

Data.frame with at least the following columns:

SNP

SNP RSID

CHR

chromosome

POS

position

foreground_filter

Specify foreground by filtering SNPs in dat. Write filter as a string (or NULL to include all SNPs).

background_filter

Specify background by filtering SNPs in dat. Write filter as a string (or NULL to include all SNPs).

Examples

if (FALSE) {
enrich_res <- XGR_iterate_enrichment(
    dat = echodata::get_Nalls2019_merged(),
    foreground_filter = "Consensus_SNP",
    background_filter = "leadSNP",
    lib.selections = c("ENCODE_TFBS_ClusteredV3_CellTypes")
)
}