From: amwaterhouse Date: Thu, 16 Feb 2006 17:30:04 +0000 (+0000) Subject: translate cDNA adjusted X-Git-Tag: Root_VamJalview_2_07b+~113 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=12e8a8c0dd1af827d42b281adf598db6fcdda76e;p=jalview.git translate cDNA adjusted --- diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index a70adfc..35ac570 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -179,13 +179,8 @@ public class AlignFrame conservationMenuItem.setVisible( !nucleotide ); modifyConservation.setVisible( !nucleotide ); - //Deal with separators //Remember AlignFrame always starts as protein - if(nucleotide) - { - viewMenu.remove(viewMenu.getItemCount()-2); - } - else + if(!nucleotide) { calculateMenu.remove(calculateMenu.getItemCount()-2); } @@ -2448,6 +2443,8 @@ public void showTranslation_actionPerformed(ActionEvent e) protein = new StringBuffer(); seq = AlignSeq.extractGaps("-. ", viewport.alignment.getSequenceAt(s).getSequence()); resSize = seq.length(); + resSize -= resSize%3; + for(res = 0; res < resSize; res+=3) { String codon = seq.substring(res, res+3);