From 53474914311b4e15b6f0a5db64af02221d802000 Mon Sep 17 00:00:00 2001 From: Ryan Routsong Date: Wed, 17 Jul 2024 13:23:11 -0400 Subject: [PATCH] fix: account for blank RNA column --- src/run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/run.py b/src/run.py index c70ff0b..9a60112 100644 --- a/src/run.py +++ b/src/run.py @@ -702,7 +702,8 @@ def valid_input(sheet): row['DNA'] = os.path.abspath(row['DNA']) if not os.path.exists(row['DNA']): raise argparse.ArgumentTypeError(f"Sample sheet path `{row['DNA']}` does not exist") - if 'RNA' in row: + if 'RNA' in row and not row['RNA'] in ('', None, 'None'): + import ipdb; ipdb.set_trace() RNA_included = True row['RNA'] = os.path.abspath(row['RNA']) if not os.path.exists(row['RNA']):