MTAFS | R Documentation |
Analyze multi-trait GWAS summary statistics and get the p-values of MTAFS
MTAFS(Z, eigR, weights = NULL, snps = NULL, traits = NULL)
Z |
A matrix of z scores obtained from GWAS summary statistics, where its row and column correspond to SNP and trait, respectively. |
eigR |
A list returned by |
weights |
A vector of weights for the Cauchy combination. The defaul is NULL assuming a uniform weight. |
snps |
A vector of indices of SNPs that are going to be included in an analysis. By default, we include all SNPs in |
traits |
A vector of indices of traits that are going to be included in an analysis. By default, we include all traits in |
MTAFS
applies the MTAFS method to GWAS summary statistics. It requires z scores from GWAS summary statistics and returns p-values of MTAFS.
MTAFS
returns a matrix of p-values, where its row correspond to SNP. The first few columns are p-values obtained by using a specific number of eigenvalues and the last column consists of the p-values of MTAFS which are the Cauchy combination of the first few columns.
Qiaolan Deng
Deng, Q., Song, C., & Lin, S. (2022). An Adaptive and Robust Method for Multi-trait Analysis of Genome-wide Association Studies Using Summary Statistics. arXiv preprint arXiv:2204.09751.
eigenDecomp
data("gwasArea") Z <- gwasArea Rhat <- cov(Z) eigR <- eigenDecomp(estR = Rhat) p_MTAFS <- MTAFS(Z,eigR) head(p_MTAFS)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.