log2fold_to_fold: Convert log2 fold change to signed fold change

log2fold_to_foldR Documentation

Convert log2 fold change to signed fold change

Description

Convert log2 fold change to signed fold change

Usage

log2fold_to_fold(x, ...)

Arguments

x

numeric vector

Details

This function takes log2 fold change values as input, and returns normal space fold change values that retain the positive and negative sign, and the magnitude.

For example:

  • ⁠log2 fold change = 2⁠ becomes ⁠fold change = 4⁠.

  • ⁠log2 fold change = -2⁠ becomes ⁠fold change = -4⁠.

This function therefore differs from similar functions that convert log2 fold change into a ratio. Instead, log2fold_to_fold() specifically retains the magnitude of negative changes.

Value

numeric vector representing signed fold change values.

See Also

Other jam utility functions: blockArrowMargin(), find_colname(), fold_to_log2fold(), get_se_assaydata(), gradient_rect(), handle_highlightPoints(), logAxis(), outer_legend(), points2polygonHull(), update_function_params(), update_list_elements()

Examples

x <- c(-3, -2, -1, 0, 1, 2, 3);
fc <- log2fold_to_fold(x);
fc;

fold_to_log2fold(fc);


jmw86069/jamma documentation built on July 6, 2023, 1:09 p.m.