Replies: 1 comment 2 replies
-
Hi @abshah1, Thanks for using the discussion forum, I think it will be a helpful feature in the long run 🙂 Regarding your question: I doubt that your model would be in a functional state if you restrict it to the 28 reactions. My approach would be to generate a flux solution using the whole model and then map the fluxes that exist on your map, for example, import escher
import cobra.flux_analysis as cflux
from cobra.io import load_model
model = load_model("iJN678")
solution = cflux.pfba(model)
builder = escher.Builder(
model=model,
map_json="iJN678test.json",
reaction_data=solution.fluxes,
)
builder |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm new to FBA analysis with escher and cobrapy. I have created a metabolic map (around 28 reactions) on escher using an exisiting cobra model (called iJN678.json which contains 863 reactions). I saved the map as a json file, (called iJN678test.json). However, the model is not updated with the 28 reactions only ( i.e. 863 reactions are still present in the model). As a result the FBA analysis is perfromed for 863 reactions (iJN678.json) instead of the 28 reactions specified by the metabolic map. My issue is how do I create a model with just the 28 reactions specified in my metabolic map to perform FBA analysis. I have attached screenshots of the escher map and the code to check for the number of reactions in my metabolic network (new model iJN678test.json)
Beta Was this translation helpful? Give feedback.
All reactions