示例#1
0
 public static SSQuadrant[] GetQuadrants(IChain peptide)
 {
     SSQuadrant[] quadrants = new SSQuadrant[peptide.Count];
     for (int i = 1; i < quadrants.Length - 1; i++)
     {
         float phi = (float)peptide.GetPhiRadians(i);
         float psi = (float)peptide.GetPsiRadians(i);
         quadrants[i] = phi < 0 ? (psi < 0 ? SSQuadrant.Alpha : SSQuadrant.Beta) : (psi < 0 ? SSQuadrant.Other : SSQuadrant.AlphaLeft);
     }
     quadrants[0] = SSQuadrant.Undefined;
     quadrants[quadrants.Length - 1] = SSQuadrant.Undefined;
     return(quadrants);
 }
示例#2
0
 public double GetPsiRadians(int index)
 {
     return(_template.GetPsiRadians(index));
 }