-
Notifications
You must be signed in to change notification settings - Fork 15
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
itle: Difficulty Performing SteadyCom Analysis on Genome-Scale Community Model Created with CarveMe #27
Comments
Hi, you are totally correct, I apologize for the lack of documentation... A lot of the functionality in this package is mostly experimental :) CarveMe can generate an integrated community model as a single SBML file. But that model is only meant for a classical FBA simulation. To take advantage of more sophisticated community simulation methods like SteadyCom, you need to provide a list of individual species models when you build the community. That means that this:
Should be replaced with:
I hope this helps :) |
I revised my script to call each model separately for the SteadyCom function. Despite these adjustments, I am still encountering errors related to the Gurobi solver. Below are the details of the error and my current script implementation. Error Details: `AttributeError Traceback (most recent call last) File /opt/anaconda3/lib/python3.9/site-packages/reframed/community/SteadyCom.py:26, in SteadyCom(community, constraints, solver) File /opt/anaconda3/lib/python3.9/site-packages/reframed/community/SteadyCom.py:156, in binary_search(solver, objective, obj_frac, minimize, max_iters, abs_tol, constraints) File /opt/anaconda3/lib/python3.9/site-packages/reframed/community/SteadyCom.py:126, in build_problem..update_growth(value) File src/gurobipy/model.pxi:357, in gurobipy.Model.getattr() File src/gurobipy/model.pxi:1901, in gurobipy.Model.getAttr() File src/gurobipy/attrutil.pxi:23, in gurobipy.__getattrinfo() AttributeError: 'gurobipy.Model' object has no attribute 'linear_constraints' For the revised script:
The SteadyCom analysis should run without encountering the AttributeError. Additional Context Operating System: macOS Any guidance or suggestions to resolve this issue would be greatly appreciated. Thank you! |
I suppose this is the problem... 😅
|
Hi @cdanielmachado Thanks for your reply! Yes, indeed the SteadyCom function works fine when using CPLEX as the solver. |
Hello @cdanielmachado, other developers and all in the community,
I am interested in performing analysis on my genome-scale community model, which I created using CarveMe. Specifically, I want to utilize some of the functions found in ReFramed, including the SteadyCom function. However, I am facing two main issues:
Lack of Documentation: I could not find much documentation on how to use the functions provided by ReFramed, including SteadyCom. Detailed examples and explanations would be extremely helpful.
KeyError: I keep encountering the following error when I attempt to run my analysis:
KeyError: 'community_biomass_dehalobacter_community_carveme'
Here is the code I am using:
It is odd that I get this KeyError since the model I have contains a biomass equation called "community_growth".
Could you please provide guidance on how to resolve the KeyError and any additional documentation or examples for using ReFramed's functions, particularly SteadyCom? I can also provide the genome-scale community model (GEM) file if needed.
Thank you for your assistance!
The text was updated successfully, but these errors were encountered: