tools.combine_two_categories

tools.combine_two_categories(adata, A, B, sep='_')[source]

Combine two categories in place, respecting the order of the concatenation.

Parameters:
  • adata (AnnData) – Input anndata object.

  • A (str) – Column name for first category.

  • B (str) – Column name for second category.

  • sep (str, optional) – The separator to combine the names.

Return type:

None