chisq.MCPerm(case_11, case_12, case_22, control_11, control_12, control_22, repeatNum = 1000)
For case/control association study for snps, the permutation test proceeds as follows: 1) Combine the observations from all the samples; 2) Shuffle them and rearrangements of the labels(case/control) on the observed data; 3) Record the genotype frequency of case and control samples, respectively; 4) Calculate the statistic of interest; 5) Repeat many times(at least 1000) to obtain the distribution of the statistic; 6) Determine how often the resampled statistic of interest is as extreme as the observed value of the same statistic.
Obviously, for multiple test correction in case/control association study for millions of snp, the traditional method---permutation test is very computationally impractical. Thus propose an accurate, rapid and efficient method for multiple testing correction in genome-wide association studies---MCPerm.
Method---MCPerm generates the genotype frequency for rearranged case and control data by twice generating random numbers for the hypergeometric distribution, based on the genotype statistic of original data, taking the place of the step 2) and step 3) of the traditional method. And the genotype frequency distribution generating by MCPerm is almost the same with permutation test, this simplified method greatly improves the efficiency of the permutation test and is faster. MCPerm method can be the perfect alternative to permutation test.
Edgington. E.S.(1995): Randomization tests, 3rd ed.
OR
,
OR.TradPerm
,
OR.MCPerm
,
Armitage
,
Armitage.TradPerm
,
Armitage.MCPerm
,
chisq.test
,
chisq.TradPerm
,
fisher.test
,
fisher.TradPerm
,
fisher.MCPerm
,
meta
,
meta.TradPerm
,
meta.MCPerm
,
permuteGenotype
,
rhyper
,
permuteGenotypeCount
,
genotypeStat
# case_11=34
# case_12=0
# case_22=16
# control_11=14
# control_12=0
# control_22=13
# chisq.MCPerm(case_11,case_12,case_22,control_11,control_12,control_22,repeatNum=10000)
Run the code above in your browser using DataLab