rcpp_boottei_parallel: rcpp_boottei_parallel

View source: R/RcppExports.R

rcpp_boottei_parallelR Documentation

rcpp_boottei_parallel

Description

computes the phylogenetically based transcriptome evolutionary index (TEI) shuffling the strata for permutation statistic

Usage

rcpp_boottei_parallel(expression, ps, permutations, ncores = 1L)

Arguments

expression

ExpressionSet as sparseMatrix

ps

named Phylostratum

permutations

number of permutations

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 permutations
rcpp_boottei_parallel(spmat, ps, 100, 1)

drostlab/myTAI documentation built on Oct. 15, 2023, 11:34 a.m.