ASBT {AllelicSeries}R Documentation

Allelic Series Burden Test

Description

Burden test with allelic series weights.

Usage

ASBT(
  anno,
  geno,
  pheno,
  apply_int = TRUE,
  covar = NULL,
  indicator = FALSE,
  is_pheno_binary = FALSE,
  method = "none",
  score_test = FALSE,
  weights = DEFAULT_WEIGHTS
)

Arguments

anno

(snps x 1) annotation vector with values in c(0, 1, 2).

geno

(n x snps) genotype matrix.

pheno

(n x 1) phenotype vector.

apply_int

Apply rank-based inverse normal transform to the phenotype? Default: TRUE. Ignored if phenotype is binary.

covar

(n x p) covariate matrix. Defaults to an (n x 1) intercept.

indicator

Convert raw counts to indicators?

is_pheno_binary

Is the phenotype binary? Default: FALSE.

method

Method for aggregating across categories: "none", "max", "sum". Default: "none".

score_test

Run a score test? If FALSE, performs a Wald test.

weights

(3 x 1) annotation category weights.

Value

Numeric p-value.

Examples

# Generate data.
data <- DGP(n = 1e3, snps = 1e2)

# Run the Allelic Series Burden Test.
# Note: the output is a scalar p-value.
results <- ASBT(
  anno = data$anno,
  geno = data$geno,
  pheno = data$pheno,
  covar = data$covar
)

[Package AllelicSeries version 0.0.4.1 Index]