Skip to content
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

bug: makeEcModel if cytosol is not 'c' #231

Closed
edkerk opened this issue Feb 23, 2023 · 5 comments
Closed

bug: makeEcModel if cytosol is not 'c' #231

edkerk opened this issue Feb 23, 2023 · 5 comments
Assignees
Labels

Comments

@edkerk
Copy link
Member

edkerk commented Feb 23, 2023

As reported by @ckitti, if the model does not use 'c' to indicate cytosol, makeEcModel fails when adding e.g. protein_pool pseudometabolite. Compartment code should be a parameter in ModelAdapter.

@Yu-sysbio
Copy link
Collaborator

Sorry I am a bit confused here. In the reported case, what are there in model.comps and model.compNames?

@edkerk
Copy link
Member Author

edkerk commented Feb 23, 2023

model.comps contains Cytosol, while in makeEcModel it assumes to be c. While the latter is more common, it will be little effort to allow for alternative compartment IDs.

pool.compartments = 'c';

@Yu-sysbio
Copy link
Collaborator

Yu-sysbio commented Feb 23, 2023

I see. Then what is the following line used for?

obj.params.enzyme_comp = 'cytoplasm';

What I do in my case is to find the compartment ID of cytosol in model.compNames, which is Cytoplasm in my model, then I just set obj.params.enzyme_comp = 'Cytoplasm'. I never check what there are in model.comps. Is this correct?

Is obj.params.enzyme_comp strictly needed?

@edkerk
Copy link
Member Author

edkerk commented Feb 23, 2023

It's a remnant of GECKO1&2's parameters function, it hadn't been used in the GECKCO3 code yet. But well spotted, I'll just refactor makeEcModel to consider obj.params.enzyme_comp = 'Cytoplasm' and you indeed do not need to care about model.comps abbreviations.

And it is needed to specify a compartment when adding the proteins and protein pool pseudometabolites. It would work perfectly fine it these would be added to any random compartment, but it would look odd, so best to ensure it is in cytosol.

@edkerk edkerk self-assigned this Feb 24, 2023
@edkerk
Copy link
Member Author

edkerk commented Feb 27, 2023

Fixed in 3f9d897

@edkerk edkerk closed this as completed Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants