From f966aba9e6bb375a4d862f595eeafe63d1469473 Mon Sep 17 00:00:00 2001 From: Yiming Yang Date: Fri, 28 Jun 2024 20:23:40 +0000 Subject: [PATCH] bug fix --- pegasus/tools/pseudobulk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pegasus/tools/pseudobulk.py b/pegasus/tools/pseudobulk.py index f1b16a5..df01613 100644 --- a/pegasus/tools/pseudobulk.py +++ b/pegasus/tools/pseudobulk.py @@ -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] @@ -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]