Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mgbckr committed Jan 25, 2024
1 parent a1296b5 commit 9c409d1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions src/spacec/plotting/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@
stacked_bar_plot,
zcount_thres,
)
from ._qptiff_converter import tissue_lables
from ._segmentation import segmentation_ch, show_masks
from ._qptiff_converter import (
tissue_lables
)
from ._segmentation import (
segmentation_ch,
show_masks
)

__all__ = [
# segmentation
"segmentation_ch",
"show_masks",

# general
"coordinates_on_image",
"catplot",
Expand All @@ -27,5 +33,7 @@
"dumbbell",
"count_patch_proximity_res",
"zcount_thres",

# qptiff converter
"tissue_lables",
]
Empty file added tests/__init__.py
Empty file.
4 changes: 2 additions & 2 deletions tests/test_3_clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def test_3_clustering():
)

# cell type percentage tab and visualization [much few]
ct_perc_tab, _ = sc.pl.pl_stacked_bar_plot_ad(
ct_perc_tab, _ = sp.pl.stacked_bar_plot(
adata=adata, # adata object to use
color="celltype_fine", # column containing the categories that are used to fill the bar plot
grouping="condition", # column containing a grouping variable (usually a condition or cell group)
Expand All @@ -293,7 +293,7 @@ def test_3_clustering():
norm=False, # if True, then whatever plotted will be scaled to sum of 1
)

sc.pl.pl_create_pie_charts_ad(
sp.pl.create_pie_charts(
adata,
color="celltype_fine",
grouping="condition",
Expand Down

0 comments on commit 9c409d1

Please sign in to comment.