scviva.tools.harreman.preprocessing.setup_deconv_adata#

scviva.tools.harreman.preprocessing.setup_deconv_adata(adata, compute_neighbors_on_key=None, sample_key=None, cell_type_list=None, cell_type_key=None, spot_diameter=None, verbose=False)[source]#

Set up deconvolution AnnData.

Parameters:
adata AnnData

AnnData object.

compute_neighbors_on_key str | None

Key in adata.obsm to use for computing neighbors. If None, use neighbors stored in adata. If no neighbors have been previously computed an error will be raised.

sample_key str | None

Sample information in case the data contains different samples or samples from different conditions. Input is key in adata.obs.

cell_type_list list | None

Cell type or cluster information for the cell-cell communication analysis. Input is a list of keys in adata.layers.

cell_type_key str | None

Cell type or cluster information for the cell-cell communication analysis. Input is key in adata.obs.

spot_diameter int | None

Spot diameter of the spatial technology the dataset belongs to.

verbose bool | None

Whether to print progress and status messages.