run_grammar | R Documentation |
run_grammar function calculates p-value and f-value.
run_grammar(K, Y, X, VC, max_itr, num.parallel, outPath, outName)
K |
is obtained from the Kinship function |
Y |
is the phenotype matrix, individual x phenotype |
X |
is the SNP matrix, individual x snp |
VC |
is obtained from the varComp function |
max_itr |
is specifies the number of permutations. |
num.parallel |
Number of parallel processes or a predefined socket cluster |
outPath |
is a parameter that specifies the path of the result file |
outName |
is a parameter that specifies the name of the result file |
p-value and f-value
X <- as.matrix(data.table::fread(SNPData))
Y <- as.matrix(data.table::fread(GeneExpressionData))
K <- Kinship(X)
VC <- varComp(K, Y, X)
result <- run_grammar(K, Y, X, VC, max_itr = 4, num.parallel = 2, outPath = "./testdir/", outName = "result.txt")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.