X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fschemes%2FResidueProperties.java;h=98868d23a38fdd13c4a82c407ed5efeff4345414;hb=cd5b2de469fb4c09242955cb4b74279e2da348d6;hp=b14d9c63412d2c2ffda7a3903943d37ec95d0b3f;hpb=85de15725d1b74ba9e0c35a104132206615d8c13;p=jalview.git diff --git a/src/jalview/schemes/ResidueProperties.java b/src/jalview/schemes/ResidueProperties.java index b14d9c6..98868d2 100755 --- a/src/jalview/schemes/ResidueProperties.java +++ b/src/jalview/schemes/ResidueProperties.java @@ -277,7 +277,8 @@ public class ResidueProperties new Color(60, 136, 238), // T new Color(60, 136, 238) // U }; - public static final Color[] color = + // Zappo + public static final Color[] zappo = { Color.pink, // A midBlue, // R @@ -287,7 +288,7 @@ public class ResidueProperties Color.green, // Q Color.red, // E Color.magenta, // G - Color.red, // H + midBlue,// Color.red, // H Color.pink, // I Color.pink, // L midBlue, // K @@ -1251,4 +1252,91 @@ public class ResidueProperties return pog; } + + public static Hashtable toDssp3State; + static { + toDssp3State = new Hashtable(); + toDssp3State.put("H", "H"); + toDssp3State.put("E", "E"); + toDssp3State.put("C", " "); + toDssp3State.put(" ", " "); + toDssp3State.put("T", " "); + toDssp3State.put("B", "E"); + toDssp3State.put("G", "H"); + toDssp3State.put("I", "H"); + toDssp3State.put("X", " "); + } + /** + * translate from other dssp secondary structure alphabets to 3-state + * @param ssstring + * @return ssstring as a three-state secondary structure assignment. + */ + public static String getDssp3state(String ssstring) + { + if (ssstring==null) + { + return null; + } + StringBuffer ss = new StringBuffer(); + for (int i=0; i ["); + Enumeration props = ((Vector) aa.get(rname)).elements(); + while (props.hasMoreElements()) + { + System.out.print("'"+(String)props.nextElement()+"'"); + if (props.hasMoreElements()) + { + System.out.println(", "); + } + } + System.out.println("]"+(res.hasMoreElements() ? "," : "")); + } + System.out.println("};"); + } + // to here }