Skip to content

Commit

Permalink
Add test_plotting.py::TestGPCCA::test_plot_tsi
Browse files Browse the repository at this point in the history
  • Loading branch information
WeilerP committed Mar 2, 2024
1 parent b2c3e1e commit 67597b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file added tests/_ground_truth_figures/plot_tsi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions tests/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -2257,6 +2257,13 @@ def test_scvelo_transition_matrix_projection(self, mc: GPCCA, fpath: str):
save=fpath,
)

@compare(kind="gpcca")
def test_plot_tsi(self, mc: GPCCA, fpath: str):
terminal_states = ["Neuroblast", "Astrocyte", "Granule mature"]
cluster_key = "clusters"
_ = mc.tsi(n_macrostates=3, terminal_states=terminal_states, cluster_key=cluster_key, n_cells=10)
mc.plot_tsi(dpi=DPI, save=fpath)


class TestLineage:
@compare(kind="lineage")
Expand Down

0 comments on commit 67597b2

Please sign in to comment.