Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About using relative abundance for beta diversity #1288

Open
jiazhou0116 opened this issue Jan 1, 2020 · 6 comments
Open

About using relative abundance for beta diversity #1288

jiazhou0116 opened this issue Jan 1, 2020 · 6 comments

Comments

@jiazhou0116
Copy link

Hi,

Happy new year!

Since the relative abundance is recommended to do beta diversity analysis, I used the following codes to transform our phyloseq object to relative abundance. But when I check taxtab5 (below), I can still only see total abundance. Do you have any ideas on it? Also, the bray-curtis distances of using relative abundance and total abundance are exactly the same. Not sure whether it’s right.

Toad5 is an object that has been removed the otus (counts <=4)

standf = function(x) {x/sum(x)}
Toad5.r= transform_sample_counts(Toad5, standf)

taxtab5<-table(tax_table(Toad5.r)[,"Phylum"], exclude = NULL)
taxtab5

Thanks,

Jia

@spholmes
Copy link
Contributor

spholmes commented Jan 2, 2020 via email

@jiazhou0116
Copy link
Author

Hi Susan,

Thanks for the quick reply. That's really helpful!

Jia

@kjpaddock
Copy link

Susan,

phyloseq::distance converts count data to relative abundances automatically? I wasn't aware. Does vegdist not required a standardization prior to distance calculations? Thanks!

@spholmes
Copy link
Contributor

spholmes commented Sep 1, 2020 via email

@kjpaddock
Copy link

Ok thanks!

@tcrispino13
Copy link

Hi, could I also ask something about using the relative abundance for beta diversity analysis. I already normalized my OTU data using variance stabilizing transformation using DESEq2. Should I transform my data again into relative abundance for the beta diversity analysis or should I analyze it directly using ordinate function. Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants