logRatio: Interconvert log ratio and fold change values

foldChangeToLogRatioR Documentation

Interconvert log ratio and fold change values

Description

Interconvert log ratio and fold change values

Usage

foldChangeToLogRatio(object, ...)

logRatioToFoldChange(object, ...)

## S4 method for signature 'numeric'
foldChangeToLogRatio(object, base = 2L)

## S4 method for signature 'numeric'
logRatioToFoldChange(object, base = 2L)

Arguments

object

Object.

base

integer(1). Logarithm base.

...

Additional arguments.

Value

numeric.

Note

Updated 2021-10-14.

See Also

  • gtools::foldchange2logratio().

  • gtools::logratio2foldchange().

Examples

## Convert fold change to log ratio.
foldChangeToLogRatio(c(-8, -4, -2, 1, 2, 4, 8))

## Convert log ratio to fold change.
logRatioToFoldChange(seq(-3, 3, 1))

acidgenomics/acidbase documentation built on Jan. 26, 2024, 4:26 p.m.