-
Notifications
You must be signed in to change notification settings - Fork 27
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
Use vegan in rarefy #561
Comments
|
Action point: compare the standard rarefaction and rrarefy. If there are significant gains in speed with essentially similar outcomes then consider switching. |
Maybe @Daenarys8 when time allows? |
Here is some update:
Using 100 evaluations, the benchmark indicates that |
Great! Some points:
|
Instead of showing comparable figures, could just directly compare the Shannon indices generated with different methods? That will much more directly show if there are actual differences. |
here is the comparison. I am not sure if this is the comparison you meant, but I can provide more otherwise.
|
Great! Unless I am mistaken, with mia you can do rarefaction both with and without replacement. These are expected to differ a bit. Is it possible to show both of those mia rarefaction versions in the comparisons? |
|
Hmm interesting. W/o replacement seems to generate similar outcomes with mia. Could you show the code, it would be more relevant than showing the numbers (the figures are enough for that now) To check: what other differences there are besides w/o replacement? |
|
Hmm..
I didnt check if the user can pass the arguments to do this both with and without replacement but ideally that should be possible. Can we include in the comparisons both (1) and (2)? In addition to vegan rrarefy. Could you check if there any explanation for the differing results between mia and vegan could be found? |
A possible explanation for this differences could be;
|
Great. When using mia and alpha diversity calculations, let's stick to using addAlpha with rarefaction arguments, whenever we can. This is more straightfwd. The rarefyAssay function is available for more general purposes as needed. Regarding the explanations:
|
On the other hand, if vegan is a benchmark, we can consider wrapping the |
Sounds good to use Some remarks:
Could we do & complete this PR? |
Sounds feasible, however, it must be clearly stated which function is utilized |
Should we switch using vegan::rrafefy (it is fast since it is programmed with C)? One downside is that it does not support
replace
. Moreover, one thing to discuss (as I am not the expert of the terminology), could it make more sense to do iterations? As I have understood, the criticism towards rafefying is mostly related to bias and missing data caused by rarefaction single time. However, if enough iterations is done, that would solve the issue.@antagomir
The text was updated successfully, but these errors were encountered: