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)

Arguments

data_name

A file containing all GWAS file names and the corresponding locations.

batch_loc

The location of the batches.

qt

Whether the trait is quantitative or not. This method is only used for quantitative traits.

pcCount

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

ncores

The number of cores which would be used for running in parallel.

Value

null

Details

The meta-regression model was proposed by Mägi et al. (2017) .

References

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.

Author

Siru Wang