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

It seems the annotation is empty in Mouse-GEM - causes problems in addRxns #12

Closed
4 tasks
johan-gson opened this issue Feb 23, 2022 · 7 comments
Closed
4 tasks
Labels
bug Something isn't working

Comments

@johan-gson
Copy link
Contributor

johan-gson commented Feb 23, 2022

Description of the issue:

mouseGEM.annotation gives:

ans =

struct with fields:

  authorList: ''
       email: ''
organization: ''
    taxonomy: ''
   sourceUrl: ''
        note: ''
   defaultLB: ''
   defaultUB: ''

the defaultLB and UB are used in addRxns, and generates a messed up vector for model.ub, it looks like incorrect memory or something, or that the whole vector is casted to char.

Expected feature/value/output:

Fill these in, -1000 and 1000 is used in Human-GEM

Current feature/value/output:

empty

Reproducing these results:

I hereby confirm that I have:

  • Tested my code with all requirements for running the model
  • Done this analysis in the master branch of the repository
  • Checked that a similar issue does not exist already
  • If needed, asked first in the Gitter chat room about the issue
@johan-gson
Copy link
Contributor Author

I loaded the model from the .mat file.

@mihai-sysbio
Copy link
Member

The default fields seem to be particular to the .mat file, as they do not show up in any of the other file formats. Also, this issue seems to be stemming from Human-GEM, so perhaps it should be transferred there?

@johan-gson
Copy link
Contributor Author

Hmm, ok. The problem doesn't exist in Human-GEM. An alternative is to fix it in RAVEN (i.e. check these fields more carefully before using them).

@mihai-sysbio
Copy link
Member

Right, it doesn't exist in Human-GEM. My thinking is that whatever is done there with these default fields is not really robust since it is inconsistent across the different file formats. But you're right, it might be that the fix belongs in RAVEN. I'm pinging @edkerk in case he knows something about this, if it would make sense to report this in RAVEN.

@johan-gson
Copy link
Contributor Author

I think I know how to fix it, it would be a small change in AddRxns. It looks like this (see below). So, an additional check if isempty(newModel.annotation.defaultLB) would probably do the trick. I have not tested if isempty catches this, but I would think so. The same needs to be done for defaultUB.

if isfield(newModel,'annotation') & isfield(newModel.annotation,'defaultLB')
newLb=newModel.annotation.defaultLB;
else
newLb=-inf;
end

@haowang-bioinfo haowang-bioinfo added the bug Something isn't working label Mar 8, 2022
@haowang-bioinfo
Copy link
Member

will look into this when making new release of Mouse-GEM

@haowang-bioinfo
Copy link
Member

this has been fixed in v1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants