transform_counts: Perform a simple transformation of a count table (log2)

View source: R/normalize_transform.R

transform_countsR Documentation

Perform a simple transformation of a count table (log2)

Description

the add argument is only important if the data was previously cpm'd because that does a +1, thus this will avoid a double+1 on the data.

Usage

transform_counts(count_table, design = NULL, method = "raw", base = NULL, ...)

Arguments

count_table

Matrix of count data

design

Sometimes the experimental design is also required.

method

Type of transformation to perform: log2/log10/log.

base

Other log scales?

...

Options I might pass from other functions are dropped into arglist.

Value

dataframe of transformed counts.

See Also

[limma]

Examples

## Not run: 
 filtered_table = transform_counts(count_table, transform='log2', converted='cpm')

## End(Not run)

elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.