BFAIR.mfa.visualization.plot_sampled_reaction_fluxes¶
-
BFAIR.mfa.visualization.plot_sampled_reaction_fluxes(sampled_fluxes, reactions, reaction_id, bins=10, alpha=0.001)[source]¶ Plots the distribution of the sampled values for one selected reaction as a histogram and a normal distribution.
- Parameters
- sampled_fluxespandas.Dataframe
The calculated fluxes, output of sampling. For each reaction, n fluxes will be calculated (n = number of samples taken).
- reactionslist
List of reactions, e.g. output of get_subsytem_reactions().
- reaction_idint
ID of the reaction in the reactions list.
- binsint
Number of bins used for the histogram. Defaults to 10.
- Returns
- figmatplotlib.Figure
Figure of sampled value distribution for one reaction.