From 5482b5c8854c72e217cf3a8de963694bdcc8079e Mon Sep 17 00:00:00 2001 From: Khalil Ouardini Date: Tue, 17 Oct 2023 14:13:49 +0000 Subject: [PATCH] set design factors & continuous factors to lists --- pydeseq2/dds.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pydeseq2/dds.py b/pydeseq2/dds.py index c55d68f2..7862876e 100644 --- a/pydeseq2/dds.py +++ b/pydeseq2/dds.py @@ -215,7 +215,10 @@ def __init__( self.design_factors = ( [design_factors] if isinstance(design_factors, str) else design_factors ) - self.continuous_factors = continuous_factors + # self.continuous_factors = continuous_factors + self.continuous_factors = ( + [continuous_factors] if isinstance(continuous_factors, str) else continuous_factors + ) if self.obs[self.design_factors].isna().any().any(): raise ValueError("NaNs are not allowed in the design factors.")