Learn R Programming

myTAI (version 2.3.4)

tf_PS: Transform Phylostratum Values

Description

This function performs transformation of phylostratum values.

Usage

tf_PS(phyex_set, transform = "qr")

Value

a PhyloExpressionSet object storing transformed Phylostratum levels.

Arguments

phyex_set

a PhyloExpressionSet S7 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.

Author

Jaruwatana Sodai Lotharukpong and Lukas Maischak

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 PhyloExpressionSetBase. Note that the input transform must be an available function, currently limited to only "qr" (or "quantilerank").

See Also

tf

Examples

Run this code

# get the relative expression profiles for each phylostratum
tfPES <- tf_PS(example_phyex_set, transform = "qr")

Run the code above in your browser using DataLab