Skip to content

Commit

Permalink
Added "z_coordinates" attribute, which measures the z coordinates of …
Browse files Browse the repository at this point in the history
…the Cb atoms of the pdb structure
  • Loading branch information
HanaJaafari committed Sep 17, 2024
1 parent cf99789 commit dbfba01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frustratometer/classes/Structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ def __init__(self, pdb_file: Union[Path,str], chain: Union[str,None]=None, seq_s
method=self.distance_matrix_method)
self.full_pdb_distance_matrix=self.distance_matrix

self.z_coordinates=self.structure.select('((name CB) or (resname GLY and name CA))').getCoords()

if self.seq_selection!=None:
self.distance_matrix=self.distance_matrix[self.init_index_shift:self.fin_index_shift,
self.init_index_shift:self.fin_index_shift]
Expand Down

0 comments on commit dbfba01

Please sign in to comment.