From bacbd2eb5a7a63817249235031488a1a0760ef0f Mon Sep 17 00:00:00 2001 From: JHKru Date: Wed, 30 Oct 2024 16:11:51 +0100 Subject: [PATCH] Change function names --- src/springcraft/anm.py | 4 ++-- src/springcraft/nma.py | 2 +- tests/test_anm.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/springcraft/anm.py b/src/springcraft/anm.py index e7b40d4..1a944c2 100644 --- a/src/springcraft/anm.py +++ b/src/springcraft/anm.py @@ -381,7 +381,7 @@ def dcc(self, mode_subset=None, norm=True, tem=None, tem_factors=K_B): """ return nma.dcc(self, mode_subset, norm, tem, tem_factors) - def prs_effector_sensitivity(self, norm=True): + def prs_effector_sensor(self, norm=True): """ Compute the perturbation response scanning matrix following and the derived effector and sensor profiles after @@ -441,5 +441,5 @@ def prs_effector_sensitivity(self, norm=True): PLOS Computational Biology 10(5) (2014). """ prs_mat = nma.prs(self, norm) - eff, sens = nma.prs_to_eff_sens(prs_mat) + eff, sens = nma.effector_sensor(prs_mat) return prs_mat, eff, sens diff --git a/src/springcraft/nma.py b/src/springcraft/nma.py index a260314..ed7b9dd 100644 --- a/src/springcraft/nma.py +++ b/src/springcraft/nma.py @@ -524,7 +524,7 @@ def prs(anm, norm=True): return prs_matrix -def prs_to_eff_sens(prs_matrix): +def effector_sensor(prs_matrix): """ Compute effector/sensor residues according to the PRS-Matrix as described in General et al. [1]_ diff --git a/tests/test_anm.py b/tests/test_anm.py index 0e59337..9958dac 100644 --- a/tests/test_anm.py +++ b/tests/test_anm.py @@ -344,7 +344,7 @@ def test_prs(file_path): strucname = basename(file_path).split(".")[0] - test_prs, test_eff, test_sens = test_anm.prs_effector_sensitivity() + test_prs, test_eff, test_sens = test_anm.prs_effector_sensor() ref_prs, ref_eff, ref_sens = [ np.genfromtxt( join(data_dir(), f"prody_anm_13_ang_cutoff_{prs_type}_{strucname}.csv.gz"),