Skip to content

Commit

Permalink
Merge pull request #309 from lilab-bcb/yiming
Browse files Browse the repository at this point in the history
Bug fix for deseq2 function with one contrast
  • Loading branch information
yihming authored Jun 28, 2024
2 parents bee45e3 + f966aba commit 40d2646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pegasus/tools/pseudobulk.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def _run_pydeseq2(
)
dds.deseq2()

if isinstance(contrasts, str):
if isinstance(contrasts, Tuple):
contrasts = [contrasts]
if isinstance(de_key, str):
de_key = [de_key]
Expand Down Expand Up @@ -338,7 +338,7 @@ def _run_rdeseq2(

dds = deseq2.DESeq(dds)

if isinstance(contrasts, str):
if isinstance(contrasts, Tuple):
contrasts = [contrasts]
if isinstance(de_key, str):
de_key = [de_key]
Expand Down

0 comments on commit 40d2646

Please sign in to comment.