conservationMenuItem.setVisible( !nucleotide );\r
modifyConservation.setVisible( !nucleotide );\r
\r
- //Deal with separators\r
//Remember AlignFrame always starts as protein\r
- if(nucleotide)\r
- {\r
- viewMenu.remove(viewMenu.getItemCount()-2);\r
- }\r
- else\r
+ if(!nucleotide)\r
{\r
calculateMenu.remove(calculateMenu.getItemCount()-2);\r
}\r
protein = new StringBuffer();\r
seq = AlignSeq.extractGaps("-. ", viewport.alignment.getSequenceAt(s).getSequence());\r
resSize = seq.length();\r
+ resSize -= resSize%3;\r
+\r
for(res = 0; res < resSize; res+=3)\r
{\r
String codon = seq.substring(res, res+3);\r