示例#1
0
 def get_plot_data(self, residue_name, point_type):
   assert (point_type in ["All", "None", "Outlier"])
   points = []
   coords = []
   for i, residue in enumerate(self.results):
     if (residue.resname == residue_name):
       if ((point_type == "All") or (residue.is_outlier())):
         chi1, chi2 = residue.get_chi1_chi2()
         points.append((chi1, chi2, residue.simple_id(), residue.is_outlier()))
         coords.append(residue.xyz)
   return (points, coords)
示例#2
0
 def get_plot_data(self, residue_name, point_type):
     assert point_type in ["All", "None", "Outlier"]
     points = []
     coords = []
     for i, residue in enumerate(self.results):
         if residue.resname == residue_name:
             if (point_type == "All") or (residue.is_outlier()):
                 chi1, chi2 = residue.get_chi1_chi2()
                 points.append((chi1, chi2, residue.simple_id(), residue.is_outlier()))
                 coords.append(residue.xyz)
     return (points, coords)