From ad0c5b1478b17a44748b73d3f432d683736596a9 Mon Sep 17 00:00:00 2001 From: Padraic Corcoran Date: Mon, 21 Aug 2023 10:12:35 +0200 Subject: [PATCH] feat: handle cases in the sample sheet where the sex is unknown --- extract_sample_sheet_info.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extract_sample_sheet_info.py b/extract_sample_sheet_info.py index 168e93b..527ae56 100644 --- a/extract_sample_sheet_info.py +++ b/extract_sample_sheet_info.py @@ -12,6 +12,8 @@ def translate_sex(sex_code): sex = "male" elif sex_code == "K": sex = "female" + elif sex_code == "O": + sex = "unknown" else: print('Sex is not specified correctly in the Sample Sheet') sys.exit(1)