phyloseq is a set of classes, wrappers, and tools (in R) to make it easier to import, store, and analyze phylogenetic sequencing data; and to reproducibly share that data and analysis with others. See the phyloseq front page:
I'm having an issue with using tax_glom to group all ASVs to the Phylum level. I constructed the phyloseq object and can't find anything wrong with the input files. My OTU table does not have NA values which has apparently been the issue for others in the past, and my taxa table looks fine. I've included the code I used to construct the object with the error at the end. Again, there are not NA values in the OTU table, so I'm not sure what the issue could be. I also tried using taxrank = rank_names(SPB_object)[2] in place of taxrank = "Phylum" to no avail. Thanks so much for the help with this!
I'm having an issue with using tax_glom to group all ASVs to the Phylum level. I constructed the phyloseq object and can't find anything wrong with the input files. My OTU table does not have NA values which has apparently been the issue for others in the past, and my taxa table looks fine. I've included the code I used to construct the object with the error at the end. Again, there are not NA values in the OTU table, so I'm not sure what the issue could be. I also tried using taxrank = rank_names(SPB_object)[2] in place of taxrank = "Phylum" to no avail. Thanks so much for the help with this!
[1] "Kingdom" "Phylum" "Class" "Order" "Family" "Genus" "Species"
[1] "SampleID" "Station" "depth" "Replicate" "Station_Depth"
normalize number of reads in each samples using median sequencing depth
Subset object to include the top 20 phyla
Error in merge_taxa.indices.internal(x, eqtaxa, archetype) : invalid archetype provided.