From 083c77b9e3b7af09993f7755d03fc1ee86e54e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Sv=C3=A4rd?= Date: Thu, 2 Nov 2023 11:18:50 +0100 Subject: [PATCH 1/2] update source name for cfDNA --- cg_lims/EPPs/udf/calculate/twist_qc_amount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cg_lims/EPPs/udf/calculate/twist_qc_amount.py b/cg_lims/EPPs/udf/calculate/twist_qc_amount.py index 20186983..2d708960 100644 --- a/cg_lims/EPPs/udf/calculate/twist_qc_amount.py +++ b/cg_lims/EPPs/udf/calculate/twist_qc_amount.py @@ -19,7 +19,7 @@ def get_qc(source: str, conc: float, amount: float) -> str: qc = "FAILED" - if source == "cfDNA": + if source == "cell-free DNA": if amount >= 10 and conc <= 250 and conc >= 0.2: qc = "PASSED" else: From a7d90f5adf9bc0a2f7715fe9c6d0f7c28afabe10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Sv=C3=A4rd?= Date: Thu, 2 Nov 2023 11:33:08 +0100 Subject: [PATCH 2/2] added back alternative source name --- cg_lims/EPPs/udf/calculate/twist_qc_amount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cg_lims/EPPs/udf/calculate/twist_qc_amount.py b/cg_lims/EPPs/udf/calculate/twist_qc_amount.py index 2d708960..fd2da9bf 100644 --- a/cg_lims/EPPs/udf/calculate/twist_qc_amount.py +++ b/cg_lims/EPPs/udf/calculate/twist_qc_amount.py @@ -19,7 +19,7 @@ def get_qc(source: str, conc: float, amount: float) -> str: qc = "FAILED" - if source == "cell-free DNA": + if source == "cell-free DNA" or source == "cfDNA": if amount >= 10 and conc <= 250 and conc >= 0.2: qc = "PASSED" else: