From 5f803192873def4851d3a92fb855aade4365b64c Mon Sep 17 00:00:00 2001 From: yaront Date: Mon, 9 Dec 2024 11:37:02 -0500 Subject: [PATCH] Checking that substrates exist fo specific kinase type when running MEA --- src/kinase_library/enrichment/mea.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kinase_library/enrichment/mea.py b/src/kinase_library/enrichment/mea.py index ba8d329..291632d 100644 --- a/src/kinase_library/enrichment/mea.py +++ b/src/kinase_library/enrichment/mea.py @@ -141,6 +141,9 @@ def mea(self, kin_type, kl_method, kl_thresh, """ exceptions.check_kl_method(kl_method) + + if getattr(self.dp_data_pps, kin_type+'_data').empty: + raise ValueError(f'Data does not contain {kin_type} substrates.') if kinases is None: kinases = data.get_kinase_list(kin_type, non_canonical=non_canonical)