Skip to content

Commit

Permalink
set design factors & continuous factors to lists
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilouardini committed Oct 17, 2023
1 parent f9dea99 commit 5482b5c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pydeseq2/dds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 5482b5c

Please sign in to comment.