Learn R Programming

FRGEpistasis (version 1.8.0)

fRGInteraction: Interaction Test by Functional Regression Model

Description

Test interaction between two gene (or genomic regions) with chi-squared test.

Usage

fRGInteraction(phenoData, x_A, x_B)

Arguments

phenoData
Vector of phenotype data which can be quantitative trait or binary trait.
x_A
Expansion data matrix of Genotype of gene A.
x_B
Expansion data matrix of Genotype of gene B.

Value

It returns the p value of chi-squared test for epistasis detection between gene A and gene B.

Details

This function takes phenotype vector and expansed genotype matrices as input. It is the most important part of this software package. It is called by functions "innerEpi" and "innerEpi" of this package. The interaction between gene A and gene B is tested with chi-squared test.

Examples

Run this code
x_A<-as.matrix(rnorm(1000,mean=0,sd=1))
x_B<-as.matrix(rnorm(1000,mean=0,sd=1))
phenoData<-runif(1000,15,60)
fRGInteraction(phenoData,x_A,x_B)

Run the code above in your browser using DataLab