Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

transformPheno

Transformation of the phenotypes in a cross object


Description

Transform phenotypes in a cross object; by default use a logarithmic transformation, though any function may be used.

Usage

transformPheno(cross, pheno.col=1, transf=log, ...)

Arguments

cross

An object of class cross. See read.cross for details.

pheno.col

A vector of numeric indices or character strings (indicating phenotypes by name) of phenotypes to be transformed.

transf

The function to use in the transformation.

...

Additional arguments, to be passed to transf.

Value

The input cross object with the transformed phenotypes

Author(s)

See Also

Examples

data(multitrait)

# Log transformation of all phenotypes
multitrait.log <- transformPheno(multitrait, pheno.col=1:nphe(multitrait))

# Square-root transformation of all phenotypes
multitrait.sqrt <- transformPheno(multitrait, pheno.col=1:nphe(multitrait),
                                  transf=sqrt)

qtl

Tools for Analyzing QTL Experiments

v1.48-1
GPL-3
Authors
Karl W Broman <broman@wisc.edu> and Hao Wu, with ideas from Gary Churchill and Saunak Sen and contributions from Danny Arends, Robert Corty, Timothee Flutre, Ritsert Jansen, Pjotr Prins, Lars Ronnegard, Rohan Shah, Laura Shannon, Quoc Tran, Aaron Wolen, Brian Yandell, and R Core Team
Initial release
2021-03-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.