Description Usage Arguments Value References Examples
Efficient multi-trait SNP-set association tests: variance components test (MQT), burden type test (MBT), adaptive test (MAT)
1 |
Z |
M by K matrix of summary Z-statistics for M variants across K traits |
Sig |
estimated trait correlation matrix (K by K) |
R |
variant LD correlation matrix (M by M) |
rho |
weight assigned to the MBT |
test p-values for MAT, MQT, MBT
vector of all p-values
the optimal rho weight
Guo,B. and Wu,B. (2018) Powerful and efficient SNP-set association tests across multiple phenotypes using GWAS summary data. Bioinformatics, bty811.
1 2 3 4 5 6 7 8 9 10 11 12 | K = 4; M = 20
R = cor(matrix(rnorm(500*M),500,M)*sqrt(0.8)+rnorm(500)*sqrt(0.2))
Y = matrix(rnorm(100*K), 100,K)*sqrt(0.8)+rnorm(100)*sqrt(0.2)
Y[,1] = -Y[,1]; Sig = cor(Y)
Z = matrix(rnorm(K*M),M,K)
js = sample(1:M, size=round(M*0.4))
Z[js,] = Z[js,] + 1.5
MSATS(Z,Sig,R)
Z = matrix(rnorm(K*M),M,K)
ij = cbind(sample(1:M, size=20, rep=TRUE), sample(1:K, size=20, rep=TRUE))
Z[ij] = Z[ij] + rnorm(20)*1.5
MSATS(Z,Sig,R)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.