tfmindi.concat

Contents

tfmindi.concat#

tfmindi.concat(adatas, idx_match=False, index_unique='-', merge='same', **kwargs)#

Concatenate multiple TF-MInDi anndatas preserving data stored in uns[‘unique_examples’].

Parameters:
  • adatas (list[AnnData] | dict[str, AnnData]) – The objects to be concatenated. If a dict is passed, keys are used for the keys argument and values are concatenated.

  • idx_match (bool (default: False)) – Whether example_oh_idx, example_contrib_idx and example_idx refer to the same data across adatas or not.

  • index_unique (str (default: '-')) – Whether to make the index unique by using the keys. If provided, this is the delimiter between “{orig_idx}{index_unique}{key}”. When None, the original indices are kept.

  • merge (Optional[Literal['same', 'unique', 'first', 'only']] (default: 'same')) – How elements not aligned to the axis being concatenated along are selected. See: anndata.concat for more info.

  • **kwargs – Extra key word arguments passed to anndata.concat

Return type:

AnnData