mmc.convert_10x()

mmochi.utils.convert_10x(adata, drop_totalseq=True, data_key='protein')

Convert default 10X data to an AnnData with protein in the .obsm, and gene expression in the .X

Parameters:
  • adata (AnnData) – 10X provided AnnData object

  • drop_totalseq (bool (default: True)) – If true, removes ‘_TotalSeq’ from the end of .obsm[data_key] values

  • data_key (str (default: 'protein')) – Name of data in .obsm to convert

Return type:

AnnData object with ‘Antibody Capture’ data moved to .obsm[data_key]