From 36152daf1a6908cad3f023323803a122c1bfd4d2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 5 Sep 2024 16:55:38 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/scirpy/tests/test_clonotypes.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/scirpy/tests/test_clonotypes.py b/src/scirpy/tests/test_clonotypes.py index 06d90ae70..06719cbaa 100644 --- a/src/scirpy/tests/test_clonotypes.py +++ b/src/scirpy/tests/test_clonotypes.py @@ -2,13 +2,13 @@ import sys from typing import cast +import anndata as ad import numpy as np import numpy.testing as npt import pandas as pd import pandas.testing as pdt import pytest from mudata import MuData -import anndata as ad import scirpy as ir @@ -341,6 +341,7 @@ def test_clonotype_convergence(adata_clonotype): ), ) + def test_j_gene_matching(): from . import TESTDATA @@ -353,9 +354,9 @@ def test_j_gene_matching(): receptor_arms="all", dual_ir="any", same_j_gene=True, - key_added="test_j_gene" + key_added="test_j_gene", ) - + clustering = data.obs["test_j_gene"].tolist() - expected = ['0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '2', '2', '2', '2', '2'] + expected = ["0", "0", "0", "0", "0", "1", "1", "1", "1", "1", "1", "1", "1", "2", "2", "2", "2", "2"] assert np.array_equal(clustering, expected)