Fix a typo 'the_data' to 'phylo_data'

This commit is contained in:
Louis 2026-01-23 15:30:33 +01:00
parent d7919e3098
commit e53e3740f6

View file

@ -65,7 +65,7 @@ collapse_otu_at_taxo <- function(phylo_data, NArm = TRUE, renameOTUs = TRUE) {
tax_ranks <- colnames(tax_table(phylo_data))
tax_df <- tax_table(phylo_data)
otu_tables_by_rank <- lapply(tax_ranks, function(rank) {
ps_glom <- tax_glom(the_data, taxrank = rank, NArm = NArm)
ps_glom <- tax_glom(phylo_data, taxrank = rank, NArm = NArm)
otu <- as.data.frame(otu_table(ps_glom))
# Ensure taxa are rows