rcpp_pStrata_parallel | R Documentation |
computes the partial transcriptome evolutionary index (TEI) values combined into strata
rcpp_pStrata_parallel(expression, ps, psgroup, ncores = 1L)
expression |
ExpressionSet as sparseMatrix |
ps |
named Phylostratum |
psgroup |
ordered unique 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)
psgroup <- sort(unique(ps))
## get pStrata
rcpp_pStrata_parallel(spmat, ps, psgroup)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.