From b94e7c2f98adde596bab6c8f8280e846d70e6e3d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 24 Jun 2024 20:16:30 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/cellarr/build_cellarrdataset.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cellarr/build_cellarrdataset.py b/src/cellarr/build_cellarrdataset.py index 95a6f2c..ce986eb 100644 --- a/src/cellarr/build_cellarrdataset.py +++ b/src/cellarr/build_cellarrdataset.py @@ -238,7 +238,9 @@ def build_cellarrdataset( if not isinstance(gene_annotation, pd.DataFrame): raise TypeError("'gene_annotation' must be a pandas dataframe.") - if len(gene_annotation["cellarr_gene_index"].unique()) != len(gene_annotation["cellarr_gene_index"].tolist()): + if len(gene_annotation["cellarr_gene_index"].unique()) != len( + gene_annotation["cellarr_gene_index"].tolist() + ): raise ValueError( "'gene_annotation' must contain unique feature ids or gene symbols." )