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

Can't add my own model readMATmod #166

Open
JessicaSingh1997 opened this issue Apr 12, 2021 · 6 comments
Open

Can't add my own model readMATmod #166

JessicaSingh1997 opened this issue Apr 12, 2021 · 6 comments

Comments

@JessicaSingh1997
Copy link

Error in readMATmod("testLBba.mat") : object 'mod.gpr' not found

I'm trying to upload my own models, and grRules is very well present in my .mat file but I can't figure out why this error is showing up :/

@JessicaSingh1997
Copy link
Author

I also have the xml files available, if there is an easier way to upload those instead.

@jotech
Copy link
Collaborator

jotech commented Apr 12, 2021

hi @JessicaSingh1997 can you provide the file testLBba.mat then I can try to have a look what's going wrong?

@JessicaSingh1997
Copy link
Author

Hi Jo,
Thanks for your response. I tried to use the function with all these .mat files and got the same error. These are metabolic models of S.thermophilis and L.bulgaricus
Mat_files.zip

@JessicaSingh1997
Copy link
Author

Hi @jotech can I try adding SMBL models to BacArena?

@jotech
Copy link
Collaborator

jotech commented Apr 14, 2021

Of course, sbml is even the default way to import models into BacArena :)

library(BacArena)
library(sybilSBML)
mod <- readSBMLmod("model.xml")
bac <- Bac(mod)
arena <- Arena(n=10,m=10)
arena <- addOrg(arena, bac, 5)
arena <- addDefaultMed(arena, bac)
sim <- simEnv(arena, time=3,sec_obj='mtf')
plotGrowthCurve(sim)
plotSubCurve(sim)[1]

@JessicaSingh1997
Copy link
Author

HI @jotech again, I tried getting the packages for making it work this way but it was a dead end. I went though the .mat you used in the example and my .mat files and there are no differences, except maybe a few fields but those are not important to the readMATmod function.

I'm still getting object 'mod.gpr' not found as an error even through grRules is a cell in the .mat file. Can you help me out please, its urgent :(

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

No branches or pull requests

2 participants