Coder Social home page Coder Social logo

Comments (3)

almut-heinken avatar almut-heinken commented on June 9, 2024

Hi Matt,
may you try also updating the COBRA.papers folder to test if that solves the issue?
Best regards,
Almut

from cobra.tutorials.

yhbae6022 avatar yhbae6022 commented on June 9, 2024

Hi all,

I think I found a bug in mgPipe tutorial(tutorial_mgPipe.m).

In line 205

[init, netSecretionFluxes, netUptakeFluxes, Y, modelStats, summary] = initMgPipe(modPath, abunFilePath, computeProfiles, 'dietFilePath', dietFilePath, 'infoFilePath', infoFilePath, 'saveConstrModels', saveConstrModels, 'numWorkers', numWorkers);

should be

[init, netSecretionFluxes, netUptakeFluxes, Y, modelStats, summary] = initMgPipe(modPath, abunFilePath, computeProfiles, 'dietFilePath', dietFilePath, 'infoFilePath', infoFilePath, 'numWorkers', numWorkers);

It seems that initMgPipe() module does not support 'saveConstrModels' option anymore.

And I encountered another error in the initMgPipe module like follows

Error using microbiotaModelSimulator>(parfor supply)
An UndefinedFunction error was thrown on the workers for 'Diets'.  This might be because the file
containing 'Diets' is not accessible on the workers.  Use addAttachedFiles(pool, files) to specify
the required files to be attached.  For more information see the documentation for
'parallel.Pool/addAttachedFiles'.

Error in microbiotaModelSimulator (line 179)
        parfor k=s:s+endPnt

Error in mgPipe (line 268)
[exchanges, netProduction, netUptake, presolve, infeasModels] = microbiotaModelSimulator(resPath,
exMets, sampNames, dietFilePath, hostPath, hostBiomassRxn, hostBiomassRxnFlux, numWorkers, rDiet,
pDiet, computeProfiles, lowerBMBound, upperBMBound, includeHumanMets, adaptMedium);

Error in initMgPipe (line 172)
[netSecretionFluxes, netUptakeFluxes, Y, modelStats, summary, statistics, modelsOK] =
mgPipe(modPath, abunFilePath, computeProfiles, resPath, dietFilePath, infoFilePath, hostPath,
hostBiomassRxn, hostBiomassRxnFlux, figForm, numWorkers, rDiet, pDiet, lowerBMBound, upperBMBound,
includeHumanMets, adaptMedium);

Error in tutorial_mgPipe.m (line 205)

Caused by:
    Undefined function or variable 'Diets'.

Could you advise me to solve this problem?

Best regards,
Young-Ho

from cobra.tutorials.

almut-heinken avatar almut-heinken commented on June 9, 2024

from cobra.tutorials.

Related Issues (12)

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.