From 0baf2b91e7e500f65a283d58f27a932c02702971 Mon Sep 17 00:00:00 2001 From: Alexey Novikov Date: Fri, 27 Nov 2026 19:22:51 +1300 Subject: [PATCH 1/2] Relax version bounds and pass design= to pydeseq2 --- pyproject.toml | 12 ++++++------ screenpro/phenoscore/deseq.py | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3ff0753..64c72d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,18 +18,18 @@ packages = [ dynamic = ["version"] [tool.poetry.dependencies] -python = ">=3.9,<3.12" -pandas = "<2.0" -numpy = "<2.0" +python = ">=3.10" +pandas = "<3" +numpy = "*" scipy = "*" -matplotlib = "<3.7" +matplotlib = "*" bokeh = "*" anndata = "*" scanpy = "*" polars = ">0.20" -pyarrow = "<26" +pyarrow = "*" biobear = "*" -pydeseq2 = "<0.5" +pydeseq2 = ">=0.5.2,<0.7" statsmodels = "*" scikit-learn = "*" simple_colors = "*" diff --git a/screenpro/phenoscore/deseq.py b/screenpro/phenoscore/deseq.py index 098c2d6..98e25ed 100644 --- a/screenpro/phenoscore/deseq.py +++ b/screenpro/phenoscore/deseq.py @@ -18,10 +18,11 @@ def runDESeq(adata, design, n_cpus=8,quiet=False): print(f'\tcreating `dds` object...') + factors = design if isinstance(design, list) else [design] dds = DeseqDataSet( counts=adata.to_df().astype(int), metadata=adata.obs, - design_factors=design, # compare samples based on the "condition" + design="~" + " + ".join(factors), # compare samples based on the "condition" refit_cooks=True, inference=inference, quiet=quiet From ce9e5d1d39948a805a39e8111a2c079a05a2be31 Mon Sep 17 00:00:00 2001 From: Alexey Novikov Date: Sat, 28 Nov 2026 00:32:56 +1300 Subject: [PATCH 2/2] Keep pydeseq2 uncapped --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 64c72d4..4b540bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ scanpy = "*" polars = ">0.20" pyarrow = "*" biobear = "*" -pydeseq2 = ">=0.5.2,<0.7" +pydeseq2 = ">=0.5.2" statsmodels = "*" scikit-learn = "*" simple_colors = "*"