Generalized Renown Analysis of Molecular variance for Mixed model Analysis R package
library(devtools)
install_github("2eding/GAMMAR")
library(GAMMAR)
X <- as.matrix(data.table::fread("X_rightdim.txt"))
Y <- as.matrix(data.table::fread("Y_rightdim.txt"))
- data.table::fread <= This package is useful for input large data
- X_rightdim.txt is snp data
- Y_rightdim.txt is gene expression data
K <- Kinship(X)
VC <- varComp(K, Y, X)
run <- run_grammar(K, Y, X, VC, max_itr = 4, num.parallel = 4, outPath = "./test/", outName = "result.txt")