Skip to content

Commit

Permalink
Remove contrast dataclass, which isnt used anywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
grst committed Dec 26, 2024
1 parent dafcd2e commit 298db0f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
3 changes: 1 addition & 2 deletions pertpy/tools/_differential_gene_expression/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ._base import ContrastType, LinearModelBase, MethodBase
from ._base import LinearModelBase, MethodBase
from ._dge_comparison import DGEEVAL
from ._edger import EdgeR
from ._pydeseq2 import PyDESeq2
Expand All @@ -14,7 +14,6 @@
"SimpleComparisonBase",
"WilcoxonTest",
"TTest",
"ContrastType",
]

AVAILABLE_METHODS = [Statsmodels, EdgeR, PyDESeq2, WilcoxonTest, TTest]
12 changes: 0 additions & 12 deletions pertpy/tools/_differential_gene_expression/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,6 @@
from pertpy.tools._differential_gene_expression._checks import check_is_numeric_matrix


@dataclass
class Contrast:
"""Simple contrast for comparison between groups"""

column: str
baseline: str
group_to_compare: str


ContrastType = Contrast | tuple[str, str, str]


class MethodBase(ABC):
def __init__(self, adata, *, mask=None, layer=None, **kwargs):
"""
Expand Down

0 comments on commit 298db0f

Please sign in to comment.