Description Usage Arguments Value Examples
Compute the imputed GReX for a certain gene on a set of individuals
1 | computeExpr(bs, pcs)
|
bs |
A list containing three objects:
|
pcs |
A list, which is the returning object of affiXcanPcs() |
A vector of imputed GReX values
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | if (interactive()) {
trainingTbaPaths <- system.file("extdata","training.tba.toydata.rds",
package="AffiXcan")
data(exprMatrix)
data(regionAssoc)
data(trainingCovariates)
assay <- "values"
training <- affiXcanTrain(exprMatrix=exprMatrix, assay=assay,
tbaPaths=trainingTbaPaths, regionAssoc=regionAssoc, cov=trainingCovariates,
varExplained=80, scale=TRUE)
testingTbaPaths <- system.file("extdata","testing.tba.toydata.rds",
package="AffiXcan")
pcs <- affiXcanPcs(tbaPaths=testingTbaPaths, affiXcanTraining=training,
scale=TRUE)
region <- "ENSG00000256377.1"
bs <- training$bs[[region]]
exprmatrix <- computeExpr(bs=bs, pcs=pcs)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.