cond_log2_transform_assays: Conditionally apply log2 transformation on assay data based...

View source: R/accessory.R

cond_log2_transform_assaysR Documentation

Conditionally apply log2 transformation on assay data based on log2_assays parameter.

Description

Conditionally apply log2 transformation on assay data based on log2_assays parameter.

Usage

cond_log2_transform_assays(
  assay_data,
  log2_assays,
  threshold = 30,
  reverse = FALSE,
  prettify_names = TRUE
)

Arguments

assay_data

A list containing matrices as assay data.

log2_assays

A string parameter that can be NULL, empty, or a non-empty string. If NULL: log2 transformation will be guessed based on input assays. If empty: no log2 transformation will be applied. If non-empty: log2 transformation will be applied unconditionally to specified assays.

threshold

A numeric threshold to determine if the matrix should be log-transformed. This is only checked if should_transform is NULL.

reverse

Boolean, should we unlog rather than log?

prettify_names

Boolean. Prettify element names? Passed to validate_indices().

Value

A modified assay_data list.


pinin4fjords/shinyngs documentation built on Jan. 18, 2025, 7:09 p.m.