GECKO
GECKO copied to clipboard
bug: generate_protModels with ecModel_batch provided
Description of the bug:
I am using generate_protModels.m to integrate proteomics. Function description mention that ecModel_batch could be optional to speed-up the process. However, doing so without including it generates an error.
Expected behavior:
Current behavior:
Dot indexing is not supported for variables of this type.
Error in getExchangeRxns (line 25) hasNoProducts=sparse(numel(model.rxns),1);
Error in changeMedia_batch (line 23) [rxnIDs,exchange] = getExchangeRxns(model);
Error in generate_protModels (line 89) tempModel = changeMedia_batch(ecModel_batch,c_source);
Reproducing these results:
% generate_protModels(ecModel,3,'sZJD28');
Context
* Operating System: MacOS Monterrey
* Python version:
* Matlab version: R2022b
I hereby confirm that I have:
- [x] Tested my code with all requirements for running GECKO
- [x] Done this analysis in the
masterbranch of the repository - [x] Checked that a similar issue does not exist already