Learn R Programming

FRGEpistasis (version 1.8.0)

innerSnpListInteraction: Pairwise Interaction Test Inner The Same SNP List

Description

Test the SNP-SNP interaction. And the SNPs are organized into one data structure.

Usage

innerSnpListInteraction(pheno, snpList)

Arguments

pheno
Vector of phenotype data.
snpList
Matrix of the genotypes of all the SNPs for testing the pairwise interactions.

Value

Return a frame contains names of all the SNPs pairs and p values for interactions of these pairs.

Details

This function aims to test the pairwise interactions between the SNPs organized into the same data structure. It takes phenotype and genotypes of the SNPs as the input. And output all the p values for the interactions of SNP pairs.

Examples

Run this code

pheno<- round(runif(1000,40,60))
geno<- as.data.frame(matrix(round(runif(5000,0,2)),1000,5))
innerSnpListInteraction(pheno,geno)

Run the code above in your browser using DataLab