bin2cell.destripe_counts

bin2cell.destripe_counts(adata, counts_key='n_counts', adjusted_counts_key='n_counts_adjusted')

Scale each row (bin) of adata.X to have adjusted_counts_key rather than counts_key total counts.

Input

adataAnnData

2um bin VisiumHD object. Raw counts, needs to have counts_key and adjusted_counts_key in .obs.

counts_keystr, optional (default: "n_counts")

Name of .obs column with raw counts per bin.

adjusted_counts_keystr, optional (default: "n_counts_adjusted")

Name of .obs column storing the desired destriped counts per bin.