Skip to content

Commit

Permalink
Change function names
Browse files Browse the repository at this point in the history
  • Loading branch information
JHKru committed Oct 30, 2024
1 parent 4a08b49 commit bacbd2e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/springcraft/anm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/springcraft/nma.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]_
Expand Down
2 changes: 1 addition & 1 deletion tests/test_anm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit bacbd2e

Please sign in to comment.