Skip to content
Prev 5085 / 7420 Next

How to calculate relative abundance along taxonomical hierarchy

Hello,
thank you for the replies. My dataset is something like this:
BR1  BR2  BR3  BR4  BR5   F1   F2   F3   F4   F5   R1   R2   R3
R4   R5   W1   W2   W3   W4   W5
OTU_1   0.08 0.13 0.56 0.90 0.91 0.36 0.05 0.02 0.13 0.11 0.00 0.00 0.15
0.06 0.00 0.12 0.00 0.00 0.03 0.05
OTU_35  0.01 0.01 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.01 0.00 0.01 0.06
OTU_4   0.01 0.00 0.00 0.00 0.00 0.00 0.01 0.31 0.08 0.00 0.07 0.05 0.00
0.00 0.00 0.00 0.00 0.07 0.41 0.00
OTU_3   0.00 0.00 0.00 ...

So I do not have the taxonomic hierarchy inside the normal dataset, but
only the OTUs.

Anyway, have taxonomic ranks embedded it in the phyloseq object:
phyloseq-class experiment-level object
otu_table()   OTU Table:         [ 150 taxa and 20 samples ]
sample_data() Sample Data:       [ 20 samples by 5 sample variables ]
tax_table()   Taxonomy Table:    [ 150 taxa by 7 taxonomic ranks ]

That's I wondered why to do it using this kind of data. I think that many
other researcher that work with huge species dataset (this one is not very
big but I worked with thousands of OTUs) will have this problem.
Do you have an idea how to deal with this kind of data object?
Thank you,
Gian
On 25 June 2015 at 11:51, Peter Solymos <solymos at ualberta.ca> wrote: