Input the reference panel and calculate the associated MDS of the Euclidean distance matrix.
MR_mega_MDS(data_name, batch_loc, qt = TRUE, pcCount = 2, ncores)
A file containing all GWAS file names and the corresponding locations.
The location of the batches.
Whether the trait is quantitative or not. This method is only used for quantitative traits.
The number of axes of genetic variation. Default the number of PCs is 1 and the limitation of pcCount should be pcCount+envCount<n_cohort-2
The number of cores which would be used for running in parallel.
null
The meta-regression model was proposed by Mägi et al. (2017) .
Mägi R, Horikoshi M, Sofer T, Mahajan A, Kitajima H, Franceschini N, McCarthy MI, COGENT-Kidney Consortium TC, Morris AP (2017). “Trans-ethnic meta-regression of genome-wide association studies accounting for ancestry increases power for discovery and improves fine-mapping resolution.” Human molecular genetics, 26(18), 3639--3650.