fRGInteraction {FRGEpistasis} | R Documentation |
Test interaction between two gene (or genomic regions) with chi-squared test.
fRGInteraction(phenoData, x_A, x_B)
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. |
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.
It returns the p value of chi-squared test for epistasis detection between gene A and gene B.
Futao Zhang
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)