tangram.utils.project_genes

tangram.utils.project_genes(adata_map, adata_sc, cluster_label=None, scale=True)

Transfer gene expression from the single cell onto space.

Parameters
  • adata_map (AnnData) – single cell data

  • adata_sp (AnnData) – gene spatial data

  • cluster_label (AnnData) – Optional. Should be consistent with the ‘cluster_label’ argument passed to map_cells_to_space function.

  • scale (bool) – Optional. Should be consistent with the ‘scale’ argument passed to map_cells_to_space function.

Returns

spot-by-gene AnnData containing spatial gene expression from the single cell data.

Return type

AnnData