From e3a0f31fb14bba0bc23ad382bd20dc55ecababe6 Mon Sep 17 00:00:00 2001 From: Wouter De Coster Date: Fri, 17 Nov 2023 09:19:01 +0100 Subject: [PATCH] Update spatial_heatmap.py update value_counts syntax as reported in https://github.com/wdecoster/NanoPlot/issues/348 --- nanoplotter/spatial_heatmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nanoplotter/spatial_heatmap.py b/nanoplotter/spatial_heatmap.py index 281ab87..d7cd991 100644 --- a/nanoplotter/spatial_heatmap.py +++ b/nanoplotter/spatial_heatmap.py @@ -73,7 +73,7 @@ def spatial_heatmap(array, path, colormap, settings, title=None): title="Number of reads generated per channel") layout = make_layout(maxval=np.amax(array)) - valueCounts = pd.value_counts(pd.Series(array)) + valueCounts = pd.Series(array).value_counts() for entry in valueCounts.keys(): layout.template[np.where(layout.structure == entry)