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 !
Hello,
I'm currently trying to cluster fungal ASVs into OTUs using DECIPHER and speedyseq, using the code example you have online:
with
physeq_asvmy 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 !