rcpp_pMatrix_parallel: rcpp_pMatrix_parallel

View source: R/RcppExports.R

rcpp_pMatrix_parallelR Documentation

rcpp_pMatrix_parallel

Description

computes the partial transcriptome evolutionary index (TEI) values for each single gene

Usage

rcpp_pMatrix_parallel(expression, ps, ncores = 1L)

Arguments

expression

ExpressionSet as sparseMatrix

ps

named Phylostratum

ncores

number of cores

Value

sparseMatrix

Author(s)

Kristian K Ullrich

Examples

## 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)

HajkD/myTAI documentation built on April 6, 2024, 7:47 p.m.