Closed wintermute221 closed 3 years ago
join_models
expects a list of filepaths or urls as models and not loaded models. It will figure out how to load the models itself. So just skip the load_model step and use the filepaths. However, I'm wondering if that is want you want to do. This will essentially build a pangenome model of the two models. If you want a community model where both species grow in a shared growth medium this should be done with micom.Community
.
Yeah, actually you're right that the community model is what I want, but when I looked though micom.util module
it doesn't talk about building a pangenome model so I thought it would just help me join the models together and then let them grow in one shared environment. Is there any command in micom.Community
that could make the two .XML files with same metabolite ID a new model? Thanks.
micom.Community
does exactly that :smile: For general usage the official docs are probably more informative than the docstrings. For instance have a look at https://micom-dev.github.io/micom/community.html.
Thank you! I've successfully built a community model with that! Appreciate your help!
Hi, I am trying to build a community for two models and I've already changed the metabolite IDs for each model. I renamed the metabolite IDs as + such as C12145cytoplasm ('C12145' is KEGG ID and 'cytoplasm' is the name of the compartment). Firstly one thing I'd like to double-check is that do I need to change the compartment ID as well even though I didn't use the compartment ID for matching models?
Secondly, when I tried to join the two renamed models an error occurred:
Here is my code:
Does anyone have any idea about that? Thanks.