BFAIR.mfa.visualization.reshape_fluxes_escher¶
-
BFAIR.mfa.visualization.reshape_fluxes_escher(sampled_fluxes)[source]¶ Reshapes either a cobra solution object or a pandas Dataframe containing the sampled fluxes for a metabolic model so that they can be visualized in Escher. If a dataframe is provided, the mean of all the predictions from each reactions will be calculated.
- Parameters
- sampled_fluxespandas.DataFrame or cobra.Solution
Object containing reaction fluxes.
- Returns
- fluxes_escherdict
Input for Escher.
- Raises
- TypeError
If the wrong type of input was provided.