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 Sep 5, 2024
1 parent 9775616 commit 36152da
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/scirpy/tests/test_clonotypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -341,6 +341,7 @@ def test_clonotype_convergence(adata_clonotype):
),
)


def test_j_gene_matching():
from . import TESTDATA

Expand All @@ -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)

0 comments on commit 36152da

Please sign in to comment.