Skip to content

Clustering ASVs to OTUs #78

Description

@ConstanceBtd

Hello,
I'm currently trying to cluster fungal ASVs into OTUs using DECIPHER and speedyseq, using the code example you have online:

cluster_matrix <- DistanceMatrix(refseq(physeq_asv),type = "matrix", includeTerminalGaps = T, processors=1)
clusters<- DECIPHER::TreeLine(myDistMatrix=cluster_matrix,method="single", cutoff=0.03, processors=NULL)

physeq_otu <- speedyseq::merge_taxa_vec(
  physeq_asv, 
  group = clusters$cluster,
  tax_adjust = 2
)

with physeq_asv my phyloseq object obtained with the dada2 pipeline. I updated your code changing the IdCluster function to the TreeLine one, however, the cluster output does not have a cluster column. It is a dendrogram. Do you kow how I could adapt this code to the new TreeLine output ?

Thanks !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions