transformation: transformation module server logic

Description Usage Arguments Value

View source: R/transformation.R

Description

The module provides several transformations on a numeric data matrix for the user.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
transformation(
  input,
  output,
  session,
  data,
  transpose = FALSE,
  pseudocount = 1,
  replaceInf = TRUE,
  replaceNA = TRUE
)

Arguments

input

Shiny's input object.

output

Shiny's output object.

session

Shiny's session object.

data

Numeric matrix on which transformation is performed (column-wise). (Supports reactive)

transpose

Whether the matrix should be transposed to enable row-wise transformation. (Supports reactive)

pseudocount

Numeric Variable to add a pseudocount to log-based transformations. (Supports reactive)

replaceInf

Change Infinite to NA, applied after transformation. (Supports reactive)

replaceNA

Change NA to 0, applied after transformation. (Supports reactive)

Value

Namedlist of two containing data and name of the used method. data: Reactive containing the transformed matrix. Infinite values are replaced by NA and NA values are replaced by 0. method: Reactive containing String. transpose: Reactive containing String.


wilson documentation built on April 19, 2021, 5:07 p.m.