Skip to content

Negative values in Community.knockout_taxa() using “relative change” method #154

Answered by cdiener
alejandrocs98 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, sure, let's get to it :)

  1. That depends on what you use as the strategy. In the course relative change was used. If you look at the code you see that it looks for the words change and then relative. So both if statements would trigger meaning it first calculates new = new - old followed by new /= old. You are right thought that you could hack it by just passing the strategy relative which is a bug 🐛

  2. 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_taxa only looks at the growth rate…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by alejandrocs98
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants