biosimulators_utils.viz.vega package#
Subpackages#
Submodules#
biosimulators_utils.viz.vega.utils module#
Utilities for working with Vega
- Author:
Jonathan Karr <karr@mssm.edu>
- Date:
2021-07-22
- Copyright:
2021, Center for Reproducible Biomedical Modeling
- License:
MIT
- biosimulators_utils.viz.vega.utils.dict_to_vega_dataset(data_dict)[source]#
Convert a dictionary of values, such as that produced by COBRApy, into a Vega dataset (array of data elements)
- Parameters:
data_dict (
dict
) – dictionary that maps the labels of predicted variables to their predicted values- Returns:
- list of data elements, each with two keys
label
and values` whose values are the labels of each variable and an array of their predicted values
- list of data elements, each with two keys
- Return type:
list