does anyone how to create rarefaction curves from a phyloseq object?
0
0
Entering edit mode
kevin • 0
@aa1632d5
Last seen 20 months ago
Mexico

I want to plor rarefaction cruves from a phyloseq object made from QIIME2 objects:

otu_table = Biomtable from qiime2

Tax_table = taxonomic assign in tsv format

sample_data = metadata in tsv format

I want to rarefy my data, but i need to generate rarefaction curves and i don´t know how to do it. I tried with other packages from Github but I can´t by the moment :(

Iwant to plot sth like this:

I want to plot sth like this

Thanks

phyloseq Phylogenetics • 3.7k views
ADD COMMENT
2
Entering edit mode

I am not sure what you have tried, but the "vegan" library (package) has the ability to do rarefaction. So make sure to load library("vegan") and then something like rarecurve(BCI, step = 20, sample = raremax, col = "blue", cex = 0.6) . Documentation for rarefy can be found here. In this tutorial we can see they use rarecurve() for phyloseq data, there they used rarecurve(t(otu_table(ps)), step=50, cex=0.5) but using rarecurve() from vegan should allow you to generate a rarefaction curve from the phyloseq otu_table.

ADD REPLY

Login before adding your answer.

Traffic: 720 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6