q.sort | R Documentation |
Sort and truncate genes according to the strength of gene-environment interaction
q.sort(x, y, method = "linear", n.gene = ncol(x), trunc = 1)
x |
A data matrix (raw: samples, col: genes). |
y |
A vector of an environment in which the samples were collected. |
method |
A string to specify the method of regression for calculating R-squared values. "linear" (default), "quadratic" or "cubic" regression model can be specified. |
n.gene |
The number of genes to be included in QuEST model (default: ncol(x)). |
trunc |
a threshold to be truncated (default: 1). |
A data matrix (raw: samples, col: sorted genes)
Takahiko Koizumi
data(Pinus) train <- q.clean(Pinus$train) target <- Pinus$target cor(target, train[, 1]) train <- q.sort(train, target, trunc = 0.5) cor(target, train[, 1])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.