Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallel insty actually fixed #2047

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

jamesmkrieger
Copy link
Contributor

@jamesmkrieger jamesmkrieger commented Feb 14, 2025

I have fixed the bad ordering problem by using indexing instead of appending

I have checked that the test runs ok and that we get interactions as output:

In [1]: from prody import *

In [2]: confProDy(verbosity='none')
@> ProDy is configured: verbosity='none'

In [3]: from prody.tests.proteins.test_insty import TestInteractions
s
In [4]: self = TestInteractions()

In [5]: self.setUp()

In [6]: self.testAllInteractionsCalc()

In [7]: self.INTERACTIONS_ALL.getSaltBridges()[0]
Out[7]: 
[['GLU24', 'OE1_378_379', 'A', 'LYS27', 'NZ_424', 'A', 3.0107],
 ['LYS29', 'NZ_456', 'A', 'ASP21', 'OD1_332_333', 'A', 3.1156],
 ['LYS11', 'NZ_175', 'A', 'GLU34', 'OE1_547_548', 'A', 3.1266],
 ['LYS33', 'NZ_526', 'A', 'ASP32', 'OD1_512_513', 'A', 3.396],
 ['GLU64', 'OE1_1026_1027', 'A', 'LYS63', 'NZ_1005', 'A', 3.4803],
 ['ARG74', 'NH1_1201_1202', 'A', 'ASP39', 'OD1_615_616', 'A', 3.7043],
 ['ARG72', 'NH1_1158_1159', 'A', 'ASP39', 'OD1_615_616', 'A', 4.6678]]

and likewise for the serial case

In [5]: self.testAllInteractionsCalcSerial()

In [6]: self.INTERACTIONS_ALL.getSaltBridges()[0]
Out[6]: 
[['GLU24', 'OE1_378_379', 'A', 'LYS27', 'NZ_424', 'A', 3.0107],
 ['LYS29', 'NZ_456', 'A', 'ASP21', 'OD1_332_333', 'A', 3.1156],
 ['LYS11', 'NZ_175', 'A', 'GLU34', 'OE1_547_548', 'A', 3.1266],
 ['LYS33', 'NZ_526', 'A', 'ASP32', 'OD1_512_513', 'A', 3.396],
 ['GLU64', 'OE1_1026_1027', 'A', 'LYS63', 'NZ_1005', 'A', 3.4803],
 ['ARG74', 'NH1_1201_1202', 'A', 'ASP39', 'OD1_615_616', 'A', 3.7043],
 ['ARG72', 'NH1_1158_1159', 'A', 'ASP39', 'OD1_615_616', 'A', 4.6678]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant