scale_counts {BRACoD.R}R 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


[Package BRACoD.R version 0.0.2.0 Index]