Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 24, 2024
1 parent 0548716 commit b94e7c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cellarr/build_cellarrdataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)
Expand Down

0 comments on commit b94e7c2

Please sign in to comment.