From 2b030011072453bcb79e0d10da5d1508dba2c8c3 Mon Sep 17 00:00:00 2001 From: ptajvar Date: Mon, 21 Oct 2024 17:15:10 +0200 Subject: [PATCH] fix: set default values for fraction_potential_doublets and n_edges_to_split_potential_doublets --- src/pixelator/annotate/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pixelator/annotate/__init__.py b/src/pixelator/annotate/__init__.py index ff19011e..e9a03410 100644 --- a/src/pixelator/annotate/__init__.py +++ b/src/pixelator/annotate/__init__.py @@ -414,8 +414,8 @@ def anndata_metrics(adata: AnnData) -> AnnotateAnndataStatistics: "min_size_threshold": None, "max_size_threshold": None, "doublet_size_threshold": None, - "fraction_potential_doublets": None, - "n_edges_to_split_potential_doublets": None, + "fraction_potential_doublets": 0.0, + "n_edges_to_split_potential_doublets": 0, } # Tau type will only be available if it has been added in the annotate step