This function test for the allele frequency difference between the study cohort and the external datasets.
Batcheffect.Test(n0, n1, n.ext, maf0, maf1, maf.ext, pop.prev, var.ratio = 1)A numeric of batch effect p-value
A numeric. The sample size of cases in the study cohort
A numeric. The sample size of controls in the study cohort
A numeric. The sample size of external datasets
A numeric. The MAF of the cases.
A numeric. The MAF of the controls
A numeric. The MAF of the external datasets.
A numeric. The population prevalence of the disease.
A numeric. The variance ratio calculated by sparseGRM.