Skip to content

Commit

Permalink
Fixed edgeR test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilly-May committed Sep 9, 2024
1 parent 6d1ffe8 commit 0ddfe79
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion pertpy/tools/_differential_gene_expression/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,6 @@ def plot_fold_change(
self,
results_df: pd.DataFrame,
*,
pairedby: str = None, # TODO: Discuss how to include
var_names: Sequence[str] = None,
n_top_vars: int = 15,
y_label: str = "Log2 fold change",
Expand Down
3 changes: 0 additions & 3 deletions tests/tools/_differential_gene_expression/test_edger.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ def test_edger_simple(test_adata):
1. Initialized
2. Fitted
3. That test_contrast returns a DataFrame with the correct number of rows
4. That the plot_volcano method works
"""
method = EdgeR(adata=test_adata, design="~condition")
method.fit()
res_df = method.test_contrasts(method.contrast("condition", "A", "B"))

assert len(res_df) == test_adata.n_vars

method.plot_volcano(res_df, save=False)


def test_edger_complex(test_adata):
"""Check that the EdgeR method can be initialized with a different covariate name and fitted and that the test_contrast
Expand Down

0 comments on commit 0ddfe79

Please sign in to comment.