@@ -180,6 +180,7 @@ def main():
180180 S_trans = 0
181181 S_rot = 0
182182 S_conf = 0
183+
183184 for residue in range (num_residues ):
184185 # molecule data container of MDAnalysis Universe type for internal
185186 # degrees of freedom getting indices of first and last atoms in the
@@ -191,10 +192,14 @@ def main():
191192 residue_container = MDAHelper .new_U_select_atom (
192193 molecule_container , selection_string
193194 )
195+ residue_heavy_atoms_container = MDAHelper .new_U_select_atom (
196+ residue_container , "not name H*"
197+ ) # only heavy atom dihedrals are relevant
194198
195199 # Vibrational entropy at every level
196200 # Get the force and torque matrices for the beads at the relevant
197201 # level
202+
198203 force_matrix , torque_matrix = LF .get_matrices (
199204 residue_container ,
200205 level ,
@@ -247,11 +252,11 @@ def main():
247252 # Gives entropy of conformations within each residue
248253
249254 # Get dihedral angle distribution
250- dihedrals = LF .get_dihedrals (residue_container , level )
255+ dihedrals = LF .get_dihedrals (residue_heavy_atoms_container , level )
251256
252257 # Calculate conformational entropy
253258 S_conf_residue = EF .conformational_entropy (
254- residue_container ,
259+ residue_heavy_atoms_container ,
255260 dihedrals ,
256261 bin_width ,
257262 start ,
0 commit comments