logfc2fc: Transform a log2 fold-change to a fold-change

View source: R/logfc2fc.R

logfc2fcR Documentation

Transform a log2 fold-change to a fold-change

Description

Transform a log2 fold-change to a (possibly negative) fold-change.

Usage

logfc2fc(logFC)

Arguments

logFC

Numeric vector of log2 fold-changes.

Details

This function converts log fold-changes < 0 to their negative multiplicative reciprocal, e.g. fc = 0.5 -> fc = -2, as is commonly done in biology. This function is not meant to be called directly by the user.

Value

Fold-change.

Examples

## Not run: 
# not run
logfc2fc(2) #4
logfc2fc(-2) #-4

## End(Not run)

jdreyf/ezlimma documentation built on April 28, 2024, 1:10 p.m.