BFAIR.mfa.utils.calculate_split_ratio

BFAIR.mfa.utils.calculate_split_ratio(sampled_fluxes, influx, split_flux1, split_flux2=None, branch_point_name='Branch point')[source]

Calculates the ratios of the in- and effluxes at a split point.

Parameters
sampled_fluxespandas.Dataframe

The calculated fluxes, output of sampling. For each reaction, n fluxes will be calculated (n = number of samples taken).

influxstring or pandas.Series

Name of the reaction flowing to the branch point or pre-processed combined flux coming to the branch point.

split_flux1string or pandas.Series

Name of flux #1 coming out of the branch point or pre-processed combined flux coming out of the branch point.

split_flux2string or pandas.Series

Name of flux #2 coming out of the branch point or pre-processed combined flux coming out of the branch point. Defaults to None.

branch_point_namestring

name of the branch point to be added to the output. Defaults to “Branch point”.

Returns
output_dfpandas.Dataframe

Presents the split flux ratio.