scale_counts {BRACoD.R} | R Documentation |
BRACoD requires relative abundance and cannot handle zeros, so this function adds a small pseudo count (1/10th the smallest non-zero value).
scale_counts(df_counts)
df_counts |
A dataframe of OTU counts. Samples are rows and bacteria are columns. |
a dataframe of relative abundance data