Description Usage Arguments Value Examples
Compute a GReX from variables and their coefficients for a set of genes
1 | affiXcanGReX(affiXcanTraining, pcs, BPPARAM = bpparam())
|
affiXcanTraining |
The returning object from affiXcanTrain() |
pcs |
A list, which is the returning object from affiXcanPcs() |
BPPARAM |
A BiocParallelParam object. Default is bpparam(). For details on BiocParallelParam virtual base class see browseVignettes("BiocParallel") |
A SummarizedExperiment object containing the 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 | 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)
exprmatrix <- affiXcanGReX(affiXcanTraining=training, pcs=pcs)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.