tangram.plot_utils.plot_gene_sparsity

tangram.plot_utils.plot_gene_sparsity(adata_1, adata_2, xlabel='adata_1', ylabel='adata_2', genes=None, s=1)

Compare sparsity of all genes between adata_1 and adata_2.

Parameters
  • adata_1 (AnnData) – Input data

  • adata_2 (AnnData) – Input data

  • xlabel (str) – Optional. For setting the xlabel in the plot. Default is ‘adata_1’.

  • ylabel (str) – Optional. For setting the ylabel in the plot. Default is ‘adata_2’.

  • genes (list) – Optional. List of genes to use. If None, all genes are used.

  • s (float) – Optional. Controls the size of marker. Default is 1.

Returns

None