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

small bug in extractGPRs subfunction of createTissueSpecificModel #4

Merged
merged 1 commit into from
Jun 23, 2013
Merged

Conversation

nignatiadis
Copy link
Contributor

The function [parsedGPR,corrRxn] = extractGPRs(model) is buggy, as it does not check whether the last row only contains empty cells.

To showcase what spurious results this leads to, with my model, corrRxn was a 7160x1 cell array with the final 2 entries being 'URIt5le' , 'URIt5le'. parsedGPR was a 7160x45 cell with the last entry row containing only empty cells and the row just before it containing the cell '64078.1'. (Note that the GPR for the reaction 'URIt5le' is (64078.1).)

Now, the truth is that I was only interested in using the extractGPRs function (which I had copied into a new file to be able to use it) and not the createTissueSpecificModel function. Thus, I am not too sure, if by fixing this bug, other bugs in createTissueSpecificModel could show up. I did successfully run the unit test (testTissueModel), but as it is really minimal and only checks if a model with less reactions than the original is returned, I am not too confident about it.

danielhyduke added a commit that referenced this pull request Jun 23, 2013
small bug in extractGPRs subfunction of createTissueSpecificModel
@danielhyduke danielhyduke merged commit d256a4f into opencobra:master Jun 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants