sim_fisher: Apply 'fisher_enrichment' to simulated data

View source: R/sim_fisher.R

sim_fisherR Documentation

Apply fisher_enrichment to simulated data

Description

Apply fisher_enrichment to simulated data.

Usage

sim_fisher(
  G,
  feat.tab,
  grp,
  effect.v = c(0, 0.2),
  alpha = 0.2,
  nsim = 99,
  test.ft = TRUE,
  seed = 1,
  verbose = FALSE
)

Arguments

G

Gene set list as returned from read_gmt.

feat.tab

Table of feature (e.g. gene) statistics that the Excel table can link to.

grp

Vector of sample groups. These must be valid variable names in R and the same length as ncol(object).

effect.v

Numeric vector of log fold-changes or percent of phentotypes to add.

alpha

Alpha level.

nsim

Number of simulations.

test.ft

Compare to fisher.test.

seed

Random seed for reproducibility.

verbose

Logical; should the number of simulations be printed every 100 simulations?


jdreyf/ezlimma documentation built on April 28, 2024, 1:10 p.m.