adw96 / DivNet

diversity estimation under ecological networks
83 stars 18 forks source link

Shannon returned all the same value #25

Closed SilasK closed 5 years ago

SilasK commented 5 years ago

Hallo, I'm trying out the DivNet to calculate shannon diversity. I put directly the raw counts (without using phyloseq). I got the exact same estimation of diversity for all the samples (including error) which I find suspicious. Any Idea.

adw96 commented 5 years ago

Remember that DivNet is a regression model. If you don't add any covariates, you are essentially fitting a mean-only model, so all estimates will be the same. You can regress on covariates regarding your samples (e.g. sample type) to give you the population estimate for each sample type, or you can estimate diversity for each sample individually (e.g. using sample ID as a covariate). If you have biological replicates, consider a regression on source ID.

Hope that helps!