|
@@ -121,8 +121,8 @@ def get_helix(residues, turns):
|
121
|
121
|
k+=1
|
122
|
122
|
temp_res.append(residues[i])
|
123
|
123
|
if(k>2):
|
124
|
|
- print(k,"- HELIX at", i)
|
125
|
|
- helix.append(Helix(temp_res,i))
|
|
124
|
+ print(k,"- HELIX at", residues[i].resid)
|
|
125
|
+ helix.append(Helix(temp_res,residues[i].resid))
|
126
|
126
|
i = i+k
|
127
|
127
|
else:
|
128
|
128
|
i+=1
|
|
@@ -140,7 +140,7 @@ def get_bends(residues):
|
140
|
140
|
vectors_substr(position_vector(residues[i+2].atoms["CA"].coords),
|
141
|
141
|
position_vector(residues[i].atoms["CA"].coords)))
|
142
|
142
|
if(angle>70):
|
143
|
|
- print("angle", i+1, angle)
|
|
143
|
+ print("angle", residues[i].resid, angle)
|
144
|
144
|
return(bends)
|
145
|
145
|
|
146
|
146
|
def vecteur_deux_points (a, b):
|
|
@@ -175,9 +175,9 @@ def position_vector(c):
|
175
|
175
|
return vector
|
176
|
176
|
|
177
|
177
|
def vectors_substr(v1, v2):
|
178
|
|
- return ([v2[0]-v1[0],
|
179
|
|
- v2[1]-v1[1],
|
180
|
|
- v2[2]-v1[2]])
|
|
178
|
+ return ([v1[0]-v2[0],
|
|
179
|
+ v1[1]-v2[1],
|
|
180
|
+ v1[2]-v2[2]])
|
181
|
181
|
|
182
|
182
|
def vector_angles(v1,v2):
|
183
|
183
|
dot_prod = dot_product(v1,v2)
|