tangram.plot_utils.plot_test_scores

tangram.plot_utils.plot_test_scores(df_gene_score, bins=10, alpha=0.7)

Plots gene level test scores with each gene’s sparsity for mapping result.

Parameters
  • df_gene_score (Pandas dataframe) – returned by compare_spatial_geneexp(adata_ge, adata_sp, adata_sc); with “gene names” as the index and “score”, “sparsity_sc”, “sparsity_sp”, “sparsity_diff” as the columns

  • bins (int or string) – Optional. Default is 10.

  • alpha (float) – Optional. Ranges from 0-1, and controls the opacity. Default is 0.7.

Returns

None