LRTq-package: LRTq: group-wise rare variant association test for...

Description Usage Arguments Details Author(s) References Examples

Description

LRTq, a powerful statistical method that infers causal statuses of rare variants with prior information and observational data and then aggregate rare variants in a nonlinear manner. With the assumption that individuals with abnormal gene expression levels are likely to enrich for causal rare variants, LRTq performs a likelihood ratio test to identify whether there are at least one causal rare variants in the variant group. It first computes the ratio between the null model that assumes no causal rare variants in a variant set and the alternative model that asserts at least one causal rare variants. LRTq then calculates p-value for the likelihood ratio between these two models using permutation test.

This package is very easy to use. It only has one function, LRTq, which takes four variables: a vector of quantitative traits, genotypes matrix, a vector of causal probability and the number of permutation. The output would be a p-value for this association test.

Usage

1
    LRTq(expr, geno, causal_ratio, perm = 1000)

Arguments

expr

A vector of quantitative traits of individuals. It should be standardized and normalized.

geno

A matrix of individual genotypes. Rows are individuals, and columns are variants.

causal_ratio

A vector with length equal to the number of variants. The probability of variants being causal, or simply, the weights of variants.

perm

An integer. The number of permutations.

Details

Package: LRTq
Type: Package
Version: 1.0
Date: 2019-06-17
License: MIT License

Author(s)

Jiajin Li (Albert Lee).

Maintainer: Jiajin Li (Albert Lee) <lijj36@ucla.edu>

References

This optional section can contain literature or other references for background information.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
    ## use sample data provided by SKAT
    require(SKAT)
    data("SKAT.example")
    attach(SKAT.example)
    ## use the quantitative trait (y.c), and extract the genotypes of rare variants (Z)
    E = y.c
    maf = colMeans(Z) / 2
    Z = Z[, maf > 0 & maf < 0.05]
    G = Z
    ## weight all variants equally with 0.30 and use 1000 permutations
    LRTq(expr = E, geno = G, causal_ratio = rep(0.30, ncol(G)), perm = 1000)
    ## the results could be 0.000999001, 0.001998002, 0.002997003, 
    ## 0.003996004, 0.004995005 or 0.005994006, due to randomness

avallonking/LRTq documentation built on April 30, 2021, 1:48 a.m.