as_binary_otu_table: Transform the otu_table of a 'phyloseq-class' object into a...

View source: R/miscellanous.R

as_binary_otu_tableR Documentation

Transform the otu_table of a phyloseq-class object into a phyloseq-class object with a binary otu_table.

Description

lifecycle-maturing

Useful to test if the results are not biased by sequences bias that appended during PCR or NGS pipeline.

Usage

as_binary_otu_table(physeq, min_number = 1)

Arguments

physeq

(required): a phyloseq-class object obtained using the phyloseq package.

min_number

(int) the minimum number of sequences to put a 1 in the OTU table.

Value

A physeq object with only 0/1 in the OTU table

Author(s)

Adrien Taudière

Examples

data(enterotype)
enterotype_bin <- as_binary_otu_table(enterotype)

MiscMetabar documentation built on Oct. 8, 2024, 1:07 a.m.