Skip to content
New issue

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

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

Already on GitHub? # to your account

simulatePairwiseInteractions not returning expected values? #2009

Open
3 tasks done
BooksAreMyChoiceWeapon opened this issue Jul 27, 2022 · 6 comments
Open
3 tasks done

Comments

@BooksAreMyChoiceWeapon
Copy link

I've been trying to simulate bacteria pairings using GapSeq models my team created in the lab. When I pair up models and simulate interactions using simulatePairwiseInteractions, they grow like crazy when I don't include a diet, but when I use a diet, half of them don't grow - even by themselves.

This is output of a program where I randomly pick a few bacteria, pair them up, and simulate the interactions.
With diet:
image

Without diet:
image

I thought that maybe the diet I was using was 'killing' the bacteria, so I decided to run each bacterium in the set through FBA by itself, both with and without the diet, and got completely different growth values as output.
image

Some of the singleGrowth values for the paired bacteria match their FBA output under the diet (such as H29) but most of them don't. Is there a reason for this? Do I need to fix something?

I hereby confirm that I have:

  • Tried to solve the issue on my own
  • Retried to run my code with the latest version of The COBRA Toolbox
  • Checked that a similar issue has not already been opened

(Note: You may replace [ ] with [X] to check the box)

@almut-heinken
Copy link
Contributor

almut-heinken commented Jul 29, 2022

Hello @BooksAreMyChoiceWeapon ,
what diet are you using exactly? Please keep in mind that the names of the exchange reactions change for the pairwise models so you need to adjust for that.
Best,
Almut

@BooksAreMyChoiceWeapon
Copy link
Author

I used a custom diet I developed from a paper I found - I called it the Pirate Diet because it's for marine bacteria.

I'll attach a copy of the diet here:
NewDMMPirateDiet.xlsx

I have it set in the format for pairwise models with the [u] at the end, and I added a few lines for the single FBA analysis that tweaked the names in the list so they ended in '_e0' instead.

The only thing I can think of is the Molybdenum ion? None of the models I'm working with use it apparently - I keep getting messages about it. I wouldn't think it would mess up the pairwise models though when the single FBA analysis runs fine?

@almut-heinken
Copy link
Contributor

Hello @BooksAreMyChoiceWeapon
looks good at first glance so I cannot say for sure. It seems like only ATL01 and ATL20 are non-growing. Could you try looking at the reduced costs/shadow prices when growing the pairwise models to see if that gives you an idea?

@BooksAreMyChoiceWeapon
Copy link
Author

How exactly would I go about doing that? Sorry I'm kinda new to the toolbox.

@rmtfleming
Copy link
Member

rmtfleming commented Aug 4, 2022 via email

@almut-heinken
Copy link
Contributor

How exactly would I go about doing that? Sorry I'm kinda new to the toolbox.

@BooksAreMyChoiceWeapon You need to run an FBA on the pairwise model and then inspect the "y" (corresponding to metabolites) and "w" (corresponding to reactions) fields in the FBA solution.

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

No branches or pull requests

3 participants