rcpp_pMatrix_parallel | R Documentation |
computes the partial transcriptome evolutionary index (TEI) values for each single gene
rcpp_pMatrix_parallel(expression, ps, ncores = 1L)
expression |
ExpressionSet as sparseMatrix |
ps |
named Phylostratum |
ncores |
number of cores |
sparseMatrix
Kristian K Ullrich
## load example PhyloExpressionSetExample
data("PhyloExpressionSetExample", package="myTAI")
## convert into sparseMatrix - rownames GeneID
spmat <- as(data.matrix(PhyloExpressionSetExample[,-c(1,2)]),
"sparseMatrix")
rownames(spmat) <- PhyloExpressionSetExample$GeneID
## create named Phylostratum vector
ps <- setNames(PhyloExpressionSetExample$Phylostratum,
PhyloExpressionSetExample$GeneID)
## get pMatrix
rcpp_pMatrix_parallel(spmat, ps)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.