scale_counts: Normalize OTU counts and add a pseudo count

View source: R/BRACoD.R

scale_countsR Documentation

Normalize OTU counts and add a pseudo count

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

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 March 24, 2022, 5:05 p.m.