Skip to content

Commit

Permalink
Resolve pre commit after dependency updates
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisK92 committed Mar 20, 2024
1 parent add539a commit 44a9888
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Nox sessions."""

import os
import shlex
import shutil
Expand Down
3 changes: 3 additions & 0 deletions spapros/evaluation/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,7 @@ def summary_knn_AUC(means_df: pd.DataFrame) -> float:
# SHARED computations
# None


# PER PROBESET computations
def xgboost_forest_classification(
adata: sc.AnnData,
Expand Down Expand Up @@ -1160,6 +1161,7 @@ def summary_metric_diagonal_confusion_percentage(
# marker_corr metric functions #
################################


# SHARED computations
def marker_correlation_matrix(
adata: sc.AnnData,
Expand Down Expand Up @@ -1350,6 +1352,7 @@ def summary_marker_corr(cor_df: pd.DataFrame) -> Dict:
# gene_corr metric functions #
##############################


# SHARED computations
def correlation_matrix(
adata: sc.AnnData,
Expand Down
3 changes: 2 additions & 1 deletion spapros/plotting/plot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Plotting Module."""

import itertools
from typing import Callable, Dict, List, Literal, Optional, Tuple, Union

Expand Down Expand Up @@ -1620,7 +1621,7 @@ def masked_dotplot(
for ct in cts:
for gene in selector.probeset[selector.probeset["selection"]].index:
if ct in selector.probeset.loc[gene, "celltypes_marker"].split(",") and (gene in adata.var_names):
marker_genes[ct].append(gene)
marker_genes[ct].append(gene) # noqa: B909
marker_genes[ct] = [g for g in marker_genes[ct] if g in selected_genes]

# Optionally subset genes:
Expand Down
1 change: 0 additions & 1 deletion spapros/selection/selection_procedure.py
Original file line number Diff line number Diff line change
Expand Up @@ -2064,7 +2064,6 @@ def select_reference_probesets(
for method in methods:
if method not in selection_fcts:
print(f"Method {method} is not available. Supported methods are {[key for key in selection_fcts]}.")
del methods[method]
methods = {m: methods[m] for m in methods if m in selection_fcts}

# Create list of planed selections
Expand Down
1 change: 1 addition & 0 deletions spapros/util/mp_util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""FRom squidpy's general utility functions."""

from __future__ import annotations

from enum import Enum
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Global fixtures for testing."""

import random

import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions tests/evaluation/test_evaluation_frame.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test cases for the ProbesetEvaluator."""

import anndata


Expand Down
1 change: 1 addition & 0 deletions tests/evaluation/test_metrics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test cases for the metric calculations."""

import numpy as np
import pandas as pd
import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test cases for the __main__ module."""

import pytest
from click.testing import CliRunner

Expand Down

0 comments on commit 44a9888

Please sign in to comment.