Cluster ASVs into Clusters

Arguments

x

A phyloseq object

cluster_method

See methods in IdClusters in DECIPHER Default is "inexact"

cluster_cutoff

Cut-off for clustering ASVs. Default= 0.01 i.e. 99 percent identity

threads

No. of processors to use

Value

A new phyloseq object with cluster ASVs

Details

clusterASVs clusters ASV sequences obtained after dada2 in phyloseq object into clusters based on user provided sequence identity. If using method="inexact" this is similar to OTU approach for example clustering of ASVs that are 97 for ASVs or OTUs is highly debated (see reference section), both have their pros and cons.The user is advised to make appropriate choice based on their research questions and properties of data.

References

Author

Sudarshan A. Shetty

Examples

if (FALSE) {
library(biomeUtils)
library(dplyr)
library(data.table)
library(tibble)

testSprockett <- core(subset_samples(SprockettTHData, Community == "River_4"), 5, 20 / 100)
testSprockett <- clusterASVs(testSprockett,
                             cluster_cutoff = 0.01,
                             threads = 2)
}