Code Monkey home page Code Monkey logo

Comments (4)

edkerk avatar edkerk commented on August 17, 2024

@phemmy2k2 thanks for the detailed information. In the last command, you haven't specified params. This is not required, so I ran it without specifying the 'params' parameter: [newConnected, cannotConnect, addedRxns, balancedModel, exitFlag]=fillGaps(CombinedDraftModel,keggModel,true,false,false,[]);

When I run this with the latest RAVEN (2.0.1), I don't get the same error message as you get. Are you sure you use the latest RAVEN release?

However, I did stumble upon another issue if you use the "whole KEGG model", obtained with keggModel=getModelFromKEGG([],false,false,false);, as the reference model. When executed that way, it doesn't construct a grRules structure, as this would be excessively long, including all KEGG genes. So best to get rid of the genes and rxnGeneMat fields before running fillGaps:

keggModel=rmfield(keggModel,'genes')
keggModel=rmfield(keggModel,'rxnGeneMat')

I've added a note mentioning this in the getModelFromKEGG function: 99d2146

from raven.

phemmy2k2 avatar phemmy2k2 commented on August 17, 2024

Thank you @edkerk I have it running with version 2.0.1. However, I discovered that getKEGGModelForOrganism() is throwing error in the latest version. Below is the code and the error, you can try to replicate it.

model_KEGG=getKEGGModelForOrganism('dme',false,false,false);
Error using exist
The first input to exist must be a string scalar or character vector.

Error in getKEGGModelForOrganism (line 221)
if ~(exist(fastaFile,'file')==2)

from raven.

edkerk avatar edkerk commented on August 17, 2024

You're not providing all parameters that are required (in MATLAB you cannot just skip parameter values for function inputs). If you run help getKEGGModelForOrganism, you'll see that the third parameter should be fastaFile, which should be a string, and if you don't want to provide a fasta file you still need to provide an empty string: ''. The third option is dataDir, again this is optional, but if you don't want to supply it, it should again be an empty string: ''. Etc, etc.

What you're probably trying to do here works with the following command:

model_KEGG=getKEGGModelForOrganism('dme','','','',false,false,false);

from raven.

edkerk avatar edkerk commented on August 17, 2024

Documentation of the functions is amended in version 2.0.2.

from raven.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.