- String amacid=(String) aa;
- for (Object codons:((Vector)ResidueProperties.codonHash.get(amacid)))
- {
- String codon = (String) codons;
- String trans = ResidueProperties.codonTranslate(codon);
- String oldtrans = ResidueProperties._codonTranslate(codon);
- if (trans==null) {
- additional+="\nOld translation table includes additional codons for "+amacid+" : "+codon;
- }
- if (oldtrans==null) {
- failtrans+=("\nold translation routine failed for old translation entry (aa was "+amacid+" codon was "+codon+")");
- }
- if (!oldtrans.equals(trans))
- {
- differentTr+=("\nDifferent translation for old and new routines: "+amacid+" "+codon+" => expected "+oldtrans+" and got "+trans);
- }
- }
+ System.out.println("ResidueProperties.codonHash2.set(\""
+ + codon.getKey() + "\", \"" + codon.getValue() + "\");");