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 detected in getSubsetEcModel #327

Closed
3 tasks done
mihai-sysbio opened this issue Jun 30, 2023 · 3 comments
Closed
3 tasks done

Bug detected in getSubsetEcModel #327

mihai-sysbio opened this issue Jun 30, 2023 · 3 comments
Labels

Comments

@mihai-sysbio
Copy link
Member

Description of the bug:

Initially spotted here, running the last step of the light tutorial triggers an error.

Reproducing these results:

>> ecHT29 = getSubsetEcModel(ecModel,HT29);
Matrix index is out of range for deletion.

Error in removeReactions (line 41)
        reducedModel.rxns(indexesToDelete)=[];

Error in getSubsetEcModel (line 53)
smallEcModel = removeReactions(smallEcModel,~keepRxns, true, true, true);

System information

  • Operating system: macOS 13
  • MATLAB version: 2021b
  • GECKO version: develop

I hereby confirm that I have:

  • Tested my code with all requirements for running GECKO
  • Done this analysis in the develop branch of the repository
  • Checked that a similar issue does not exist already
@mihai-sysbio
Copy link
Member Author

These two lines are identical

smallEcModel = removeReactions(smallEcModel,~keepRxns, true, true, true);

smallEcModel = removeReactions(smallEcModel,~keepRxns, true, true, true);

but I don't understand how come there is no

smallEcModel = removeReactions(bigEcModel,~keepRxns, true, true, true);

@edkerk
Copy link
Member

edkerk commented Jun 30, 2023

These two lines are identical

smallEcModel = removeReactions(smallEcModel,~keepRxns, true, true, true);

smallEcModel = removeReactions(smallEcModel,~keepRxns, true, true, true);

Line 53 should be deleted.

but I don't understand how come there is no

smallEcModel = removeReactions(bigEcModel,~keepRxns, true, true, true);

That would not make sense. The smallEcModel is starting to get generated in line 26, and then modified in the rest of the function.

smallEcModel = removeGenes(bigEcModel,genesToRemove,true,true,false);

@edkerk
Copy link
Member

edkerk commented Jul 2, 2023

Resolved in #331

@edkerk edkerk closed this as completed Jul 2, 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