-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemp.txt
55 lines (49 loc) · 2.78 KB
/
temp.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Cluster Results: [(atom1, i), [(atom2_1, j_1), (atom2_2, j_2),..., (atom2_N, j_N)]]
"Case 1a"
----------------------------------------------------------------------------------
== -> if id(node1) == id(node2):
node 2 -> d = self.data[node2.idx]
node 1, node 1 -> if res1 in node1.resi and res2 in node1.resi:
node 1 -> for i in node1.idx:
i -> if self.data[i].name == atomName1 and self.data[i].resName == res1:
----------------------------------------------------------------------------------
"Case 1b"
-------------------------------------------------------------------------------------------
!= -> if node1 != node2:
node 2 -> d = self.data[node2.idx]
node 1, node 2 -> if res1 in node1.resi and res2 in node2.resi:
node 1 -> for i in node1.idx:
if self.data[i].name == atomName1 and self.data[i].resName == res1:
-------------------------------------------------------------------------------------------
"Case 1c"
-------------------------------------------------------------------------------------------
!= -> if node1 != node2:
node 1 -> d = self.data[node1.idx]
node 2, node 1 -> if res1 in node2.resi and res2 in node1.resi:
node 2 -> for j in node2.idx:
if self.data[j].name == atomName1 and self.data[j].resName == res1:
-------------------------------------------------------------------------------------------
"Case 2a"
-------------------------------------------------------------------------------------------
== -> if id(node1) == id(node2):
node 2 -> d = self.data[node2.idx]
node 1, node 1 -> if res1 in node1.resi and res2 in node1.resi:
node 1 -> for i in node1.idx:
if self.data[i].name == atomName1 and self.data[i].resName == res1:
-------------------------------------------------------------------------------------------
"Case 2b"
-------------------------------------------------------------------------------------------
!= -> if node1 != node2:
node 2 -> d = self.data[node2.idx]
node 1, node 2 -> if res1 in node1.resi and res2 in node2.resi:
node 1 -> for i in node1.idx:
if self.data[i].name == atomName1 and self.data[i].resName == res1:
-------------------------------------------------------------------------------------------
"Case 2c"
-------------------------------------------------------------------------------------------
if node1 != node2:
if res1 in node2.resi and res2 in node1.resi:
d = self.data[node1.idx]
for j in node2.idx:
if self.data[j].name == atomName1 and self.data[j].resName == res1:
-------------------------------------------------------------------------------------------