Class: ZegginiBurdenTest

stats~ZegginiBurdenTest()

Standard burden test that collapses rare variants into a total count of rare alleles observed per sample in a group (e.g. gene).

See our wiki page for more information. Also see the paper describing the method.

Constructor

new ZegginiBurdenTest()

Source:

Extends

  • AggregationTest

Methods

(static) weights(n) → {Array.<number>}

Default weight function for burden test. All variants weighted equally. Only requires the number of variants since they are all given the same weight value.

Parameters:
Name Type Description
n number

Number of variants.

Source:
Returns:

An array of weights, one per variant.

Type
Array.<number>

run(u, v, w) → {Array.<Number>}

Calculate burden test from vector of score statistics and variances.

Parameters:
Name Type Description
u Array.<Number>

Vector of score statistics (length m, number of variants)

v Array.<Number>

Covariance matrix of score statistics

w Array.<Number>

Weight vector (length m, number of variants)

Source:
Returns:

Array of: [burden test statistic, p-value, effect size of burden test, standard error of effect size]

Type
Array.<Number>