public static final int[] nucleotideIndex;
public static final int[] purinepyrimidineIndex;
+
+ public static final int[] secondaryStructureIndex;
public static final Map<String, Integer> aa3Hash = new HashMap<>();
purinepyrimidineIndex['N'] = 2;
purinepyrimidineIndex['n'] = 2;
}
+
+ static
+ {
+ secondaryStructureIndex = new int[255];
+ for (int i = 0; i < 255; i++)
+ {
+ secondaryStructureIndex[i] = 3;
+ }
+
+ secondaryStructureIndex['H'] = 0;
+ secondaryStructureIndex['E'] = 1;
+ secondaryStructureIndex['C'] = 2;
+ }
private static final Integer ONE = Integer.valueOf(1);
Color.white, // all other nucleotides
Color.white // Gap
};
+
+ //Secondary structure
+ public static final Color[] secondarystructure = { Color.red, // H
+ Color.green, // E
+ Color.gray // C
+ };
// Zappo
public static final Color[] zappo = { Color.pink, // A
public static void main(String[] args)
{
Hashtable<String, Vector<String>> aaProps = new Hashtable<>();
- System.out.println("my %aa = {");
+ jalview.bin.Console.outPrintln("my %aa = {");
// invert property hashes
for (String pname : propHash.keySet())
{
System.out.print("'" + props.nextElement() + "'");
if (props.hasMoreElements())
{
- System.out.println(", ");
+ jalview.bin.Console.outPrintln(", ");
}
}
- System.out.println("]" + (res.hasMoreElements() ? "," : ""));
+ jalview.bin.Console
+ .outPrintln("]" + (res.hasMoreElements() ? "," : ""));
}
- System.out.println("};");
+ jalview.bin.Console.outPrintln("};");
}
// to here