x3cflux.TracerMixtureSpace
- class x3cflux.TracerMixtureSpace(metabolite_name: str, species: List[Dict[str, float]], costs: List[float])
Bases:
objectSpace of labeled species (or even sets thereof) that can be combined into a tracer mixture.
Methods
compute_mix_and_costs(relative_abundances)Compute tracer mixture and its costs given relative abundance of the species.
- compute_mix_and_costs(relative_abundances: ndarray)
Compute tracer mixture and its costs given relative abundance of the species.
- Parameters:
relative_abundances (numpy array) – Fraction with which each mixture is contained in the final mixture. All fractions must sum up to one and each fraction must be between 0 and 1.
- Returns:
dict – Relative abundances of each tracer
list – Costs of the mixture