Skip to contents

This function performs transformation of phylostratum values.

Usage

tfPS(ExpressionSet, transform)

Arguments

ExpressionSet

a standard PhyloExpressionSet object.

transform

a character vector of any valid function that transforms PS values. Possible values can be:

  • transform = "qr" (or "quantilerank") : quantile rank transformation analogous to Julia function StatsBase.quantilerank using method = :tied.

Value

a standard PhloExpressionSet object storing transformed Phylostratum levels.

Details

This function transforms the phylostratum assignment. The return value of this function is a PhyloExpressionSet object with transformed phylostratum tfPhylostratum as the first column, satisfying is.ExpressionSet. Note that the input transform must be an available function, currently limited to only "qr" (or "quantilerank").

See also

Author

Jaruwatana Sodai Lotharukpong and Lukas Maischak

Examples

# source the example dataset
data(PhyloExpressionSetExample)
 
# get the relative expression profiles for each phylostratum
tfPES <- tfPS(PhyloExpressionSetExample, transform = "qr")
#> Error in tfPS(PhyloExpressionSetExample, transform = "qr"): could not find function "tfPS"
head(tfPES)
#> Error: object 'tfPES' not found