scale_counts: Normalize OTU counts and add a pseudo count

Description Usage Arguments Value

View source: R/BRACoD.R

Description

BRACoD requires relative abundance and cannot handle zeros, so this function adds a small pseudo count (1/10th the smallest non-zero value).

Usage

1
scale_counts(df_counts)

Arguments

df_counts

A dataframe of OTU counts. Samples are rows and bacteria are columns.

Value

a dataframe of relative abundance data


BRACoD.R documentation built on May 17, 2021, 9:09 a.m.