Set description
authoramwaterhouse <Andrew Waterhouse>
Wed, 8 Nov 2006 17:38:13 +0000 (17:38 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 8 Nov 2006 17:38:13 +0000 (17:38 +0000)
src/jalview/datamodel/SeqCigar.java
src/jalview/datamodel/Sequence.java

index 84da278..74a7812 100644 (file)
@@ -437,6 +437,7 @@ public class SeqCigar
                              ref.getStart() + alseqs[i].start+bounds[0],
                              ref.getStart() + alseqs[i].start+(bounds[2]==0 ? -1 : bounds[2]));
       seqs[i].setDatasetSequence(ref);
+      seqs[i].setDescription(ref.getDescription());
     }
     if (segments!=null) {
       for (int i=0; i<segments.length; i+=3) {
index b1a1be2..8031202 100755 (executable)
@@ -394,6 +394,7 @@ public class Sequence implements SequenceI
     int nend = findPosition(end) - 1;
     // JBPNote - this is an incomplete copy.
     SequenceI nseq = new Sequence(this.getName(), seq, nstart, nend);
+    nseq.setDescription(description);
     nseq.setDatasetSequence(getDatasetSequence());
     return nseq;
   }