Transform the otu_table of a phyloseq-class
object into a phyloseq-class
object with a binary otu_table.
Source: R/miscellanous.R
as_binary_otu_table.Rd
Useful to test if the results are not biased by sequences bias that appended during PCR or NGS pipeline.
Arguments
- physeq
(required): a
phyloseq-class
object obtained using thephyloseq
package.- min_number
(int) the minimum number of sequences to put a 1 in the OTU table.
Examples
data(enterotype)
enterotype_bin <- as_binary_otu_table(enterotype)