Negative values in Community.knockout_taxa() using “relative change” method
#154
-
|
Hi!
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hi, sure, let's get to it :)
Hope that helps, |
Beta Was this translation helpful? Give feedback.
-
|
Thank you!! :) |
Beta Was this translation helpful? Give feedback.
Hi, sure, let's get to it :)
That depends on what you use as the strategy. In the course
relative changewas used. If you look at the code you see that it looks for the wordschangeand thenrelative. So both if statements would trigger meaning it first calculatesnew = new - oldfollowed bynew /= old. You are right thought that you could hack it by just passing the strategyrelativewhich is a bug 🐛Neither, and it would not matter. Cooperative tradeoff is enough to fix the growth rates because it will give a unique solution to each taxon. For minimal imports or pFBA the growth rates would be fixed to those values, so they wouldn't change.
knockout_taxaonly looks at the growth rate…