extraction.core.extractor.flatten_nesteddict¶
- flatten_nesteddict(nest, to='series', tp=None)[source]¶
Convert a nested extraction dict into a dict of pd.Series.
- Parameters
- nest: dict of dicts
Contains the nested results of extraction.
- to: str (optional)
Specifies the format of the output, either pd.Series (default) or a list
- tp: int
Timepoint used to name the pd.Series
- Returns
- d: dict
A dict with a concatenated string of channel, reduction metric, and cell metric as keys and either a pd.Series or a list of the corresponding extracted data as values.
- rtype
Dict
[str
,Series
] ..