Skip to content

Commit

Permalink
MEA checkpoint (#12)
Browse files Browse the repository at this point in the history
Checking that substrates exist for specific kinase type when running MEA
  • Loading branch information
yaront authored Dec 9, 2024
1 parent 6ef7acb commit 9492448
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/kinase_library/enrichment/mea.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9492448

Please sign in to comment.