From 94924485ea634575c4fc219a875a264f4894eba4 Mon Sep 17 00:00:00 2001 From: Tomer Yaron-Barir <39324784+yaront@users.noreply.github.com> Date: Mon, 9 Dec 2024 11:42:04 -0500 Subject: [PATCH] MEA checkpoint (#12) Checking that substrates exist for 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)