Paste this makes new sequence
authoramwaterhouse <Andrew Waterhouse>
Tue, 6 Dec 2005 09:15:56 +0000 (09:15 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 6 Dec 2005 09:15:56 +0000 (09:15 +0000)
src/jalview/gui/AlignFrame.java

index 86d7cb6..210c44f 100755 (executable)
@@ -828,7 +828,10 @@ public class AlignFrame
         //!newAlignment\r
         for (int i = 0; i < sequences.length; i++)\r
         {\r
-          viewport.alignment.addSequence(sequences[i]);\r
+          Sequence newseq = new Sequence(sequences[i].getName(),\r
+              sequences[i].getSequence(), sequences[i].getStart(),\r
+              sequences[i].getEnd());\r
+          viewport.alignment.addSequence(newseq);\r
           if(sequences[i].getDatasetSequence()==null)\r
           {\r
              ////////////////////////////\r
@@ -838,10 +841,8 @@ public class AlignFrame
                                        AlignSeq.extractGaps("-. ", sequences[i].getSequence()),\r
                                        sequences[i].getStart(),\r
                                        sequences[i].getEnd());\r
-            sequences[i].setDatasetSequence(ds);\r
+            newseq.setDatasetSequence(ds);\r
             viewport.alignment.getDataset().addSequence(ds);\r
-\r
-\r
           }\r
 \r
         }\r