GECKO icon indicating copy to clipboard operation
GECKO copied to clipboard

bug: generate_protModels with ecModel_batch provided

Open ae-tafur opened this issue 3 years ago • 0 comments

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 master branch of the repository
  • [x] Checked that a similar issue does not exist already

ae-tafur avatar Jun 23 '22 16:06 ae-tafur