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. 28, 2024, 2:59 a.m.