We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi folks,
When attempting to plot the phenotypic phase plane of a predicted pathway,
import gurobipy model=read_sbml_model('data/iMM904.xml.gz') model.solver = 'gurobi' from cameo.visualizations.plotting.with_plotly import PlotlyPlotter plotter = PlotlyPlotter() predictor = pathway_prediction.PathwayPredictor(model) pathways = predictor.run(product='vanillin', max_predictions=3) pathways.plot_production_envelopes(plotter=plotter, model=model, objective=model.reactions.BIOMASS_SC5_notrace)
We get the following error:
182 ppp = pathway.production_envelop(model, objective=objective) 183 ppp.plot(grid=grid, width=450, title = "Pathway %i" % (i+1)) TypeError: plot() missing 1 required positional argument: 'plotter'
I think the problem is that plot() needs a plotter argument:
plot()
plotter
cameo/cameo/flux_analysis/analysis.py
Line 762 in 8b1adb7
So the solution would be that line 183 in :
cameo/cameo/strain_design/pathway_prediction/pathway_predictor.py
Line 183 in 8b1adb7
needs to be:
ppp.plot(plotter=plotter, grid=grid, width=450, title = "Pathway %i" % (i+1))
The text was updated successfully, but these errors were encountered:
Added plotter argument to PhenotypicPhasePlaneResult.plot()
e7f5859
Solving issue biosustain#288 Thanks to @jafemm for discovering this issue
No branches or pull requests
Hi folks,
When attempting to plot the phenotypic phase plane of a predicted pathway,
We get the following error:
I think the problem is that
plot()
needs aplotter
argument:cameo/cameo/flux_analysis/analysis.py
Line 762 in 8b1adb7
So the solution would be that line 183 in :
cameo/cameo/strain_design/pathway_prediction/pathway_predictor.py
Line 183 in 8b1adb7
needs to be:
The text was updated successfully, but these errors were encountered: