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); }
public double GetPhiRadians(int index) { return(_template.GetPhiRadians(index)); }