-
Notifications
You must be signed in to change notification settings - Fork 42
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
Questions about media, gapfilling, and predicting interactions #139
Comments
Hi Qing, I think the question regarding usage from any point in the Snakefile is answered here: Regarding your specific errors, could you please provide me with information regarding what commands you are running, and what error messages you are getting? |
Dear Francisco, Thanks for your advise on rule edition in snakefile! Before trying the pipeline, I'm trying to add my specific media into media.tsv file for carveme gapfilling. I'm wondering how could you get corresponding BIGG id of all components of the media from the reference. I found it's difficult to find BIGG id for all components for complex ingredients, such as tryptone. I tried to trace from the reference with media composition but didn't find a document with both component names and BIGG id. Thanks again for your help! |
Hi Qing, Have a look at the data access page in the bigg database, bigg_models_metabolites.txt is probably the file you are looking for, connecting all metabolite IDs with their names + other info. In my experience, when creating media files I usually try to start with some already existing media composition file and tailor it to my needs, for example I can suggest this milk media file or start from one of the existing CarveMe media compositions. Hope this helps, and I can also suggest to check out the CarveMe github repo issues section in case there are relevant media file/composition discussions there. Best, |
Dear Francisco, Thanks for your suggestions! Now I have my media composition file ready:) I have read a lot of closed issues and found more interception about carveme model construction and smetana simulation, then I got confused about how could I achieve my objective after running them. I will appreciate if you could give some instructions. My goal is to see how will interaction of gut microbiota from different samples change if I add one compound into my base media. For example, my base media was M3 and I added mucin into M3, then I would like to see what's the significant different interactions coming up with mucin addition. Thank you very much for your patience and help! |
Hi Qing, No problem, these are great questions!
I have seen people create single models for the entire community by combining individual models. However, in my experience I have always built individual GEMs from MAGs and then simulated them together in their corresponding community with SMETANA. So it is not necessary to combine them all into one model for the entire sample, although the choice is up to you.
Indeed, you are on the right track here. However, it will not work for mucin because it is actually not present in the metabolic models or the underlying BiGG database (feel free to check!). Luckily, I have already answered very similar questions before, so I can recommend you read these two discussions in case you haven't seen them yet #91 & #112. Highlights from #91Regarding gapfilling and simulation media:
Regarding mucin:
Highlights from #112Regarding gapfilling and simulation media:
Some papers to read:
Hope this helps! |
Dear Francisco, Thanks a lot for your answers and related highlights! These two highlights were exactly the things that brought me to my question above. Based on your answer, can I say that if I would like to see the changed interaction after I add a compound (not mucin, but glycerol as an example) into M3, I need to fill gaps with M3+glycerol media and stimulate with M3 media? I have read more examples from your exercise module and from carveme and smetana website. I'm wondering if I will achieve the same goal by run carveme to get models without gapfilling, then stimulate with smetana with M3 and M3+glycerol, respectively. Then I could compare metabolites or bacteria with high smetana scores from M3 with that from M3+glycerol. How do you think? Will it also work for my purpose? Thanks again for your help! |
Hi Qing,
Exactly 👍
I think that this is perhaps worth trying out at a small scale as a test example, if it works then great! Best, |
Hi Francisco, I have tried to run carveme with gapfilling of my macfarlane media with glycerol. The plan was to simulate the interaction in macfarlane media without glycerol but I got error with gapfilling. My code is here "Traceback (most recent call last): I want to attach my media file with macfarlane compositions but can't add .tsv file here, so I attached excel file. What I did was to save as a .txt file then change the extension name into .tsv. Could you please have a look and see if it's format problem? Except for format problem, I was also think it can be the composition of my macfarlane media which provides polysaccharides but not simple sugars for the bacteria because it was designed to grow microbial community from feces but not for single strain. If I construct models for one MAG, it may not able to grow in this media. Do you have any idea about this perspective? I really appreciate all your help! |
Hey Qing, Indeed, it is possible that there are compounds missing from your media composition that would be required for the growth of your given model. As a sanity check, I would try first gapfilling on some standard/rich media that includes simple sugars e.g. LB or milk. If you are still getting those errors then there may be something wrong with your model. You may also find helpful to use the minimal_medium cobrapy function to inform/update your media composition. It is possible that your strain lacks the genes required for complex polysaccharide degradation, or the genes are present but not accurately annotated, or the specific reactions are not present in the models/database in the frist place (e.g. mucin degradation). Good luck! Best, |
Hi Francisco, Thanks for your suggestions! I have built models with gapfiled with M3+glycerol media and stimulate with M3 media with the following code: Regards, |
Seems like your model is still having trouble growing in that media. I suggest you look into the specific media requirements of your model, as I explain to another user in this comment #111 (comment) . Also, I would try using cobrapy to check that the models indeed have valid FBA solutions under the media compositions being used with SMETANA. |
Dear Francisco,
Thank you so much for quick response and detailed instructions!
Actually I would like to run carveme, memote, and SMETNAN part of this pipeline and start with carveme. I have moved annotated MAGs *.faa files into protein_bins folder as contig.yaml mentioned as input for carveme.
What else should I do to run it? I keep getting errors from my trials and really appreciate your instruction on it.
Regards,
Qing
Originally posted by @Qing-microbiol in #133 (comment)
The text was updated successfully, but these errors were encountered: