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:
Hello -
I am working on analyzing alpha and beta diversity of a dataset.
I have imported data from DADA2, where I attempted to create a ML tree.
My problem is that I believe I have an ML tree with the full sequences as tip labels. Could you suggest what step I might have missed.
Second, I have many ASVs of very low abundance. Would you have any suggestions on pruning taxa, beyond getting rid of any that aren't present in any samples.
Thank you!
fit = pml(treeNJ, data = phang.align)
fitGTR <- update(fit, k=4, inv=0.2)
fitGTR <- optim.pml(fitGTR, model = "GTR", optInv = TRUE, optGamma = TRUE, rearrangement = "stochastic", control = pml.control(trace = 0))
Phylogenetic tree with 2662 tips and 2661 internal nodes.
Tip labels:
CGTTACTCGGAATCACTGGGCGTAAAGAGCATGTAGGCTGGTTTGTAAGTTGGAAGTGAAATCCTATGGCTCAACCATAGAACTGCTTCCAAAACTACATACCTAGAGTATGGGAGAGGTAGATGGAATTTCTGGTGTAGGGGTAAAATCCGTAGAGATCAGAAGGAATACCGATTGCGAAGGCGATCTACTGGAACATTACTGACGCTGAGATGCGAAAGCGTGGGGAGCA
Regarding the long tip-labels, try doing what I suggest here to store the ASV sequences in the phyloseq object and then create shorter taxon names (after adding the tree to the phyloseq object, as you've done above).
Hello - I am working on analyzing alpha and beta diversity of a dataset. I have imported data from DADA2, where I attempted to create a ML tree. My problem is that I believe I have an ML tree with the full sequences as tip labels. Could you suggest what step I might have missed. Second, I have many ASVs of very low abundance. Would you have any suggestions on pruning taxa, beyond getting rid of any that aren't present in any samples.
Thank you!
ps phyloseq-class experiment-level object otu_table() OTU Table: [ 2662 taxa and 16 samples ] tax_table() Taxonomy Table: [ 2662 taxa by 6 taxonomic ranks ] phy_tree() Phylogenetic Tree: [ 2662 tips and 2660 internal nodes ]
Phylogenetic tree with 2662 tips and 2661 internal nodes.
Tip labels: CGTTACTCGGAATCACTGGGCGTAAAGAGCATGTAGGCTGGTTTGTAAGTTGGAAGTGAAATCCTATGGCTCAACCATAGAACTGCTTCCAAAACTACATACCTAGAGTATGGGAGAGGTAGATGGAATTTCTGGTGTAGGGGTAAAATCCGTAGAGATCAGAAGGAATACCGATTGCGAAGGCGATCTACTGGAACATTACTGACGCTGAGATGCGAAAGCGTGGGGAGCA