Sequence is char []
[jalview.git] / src / jalview / datamodel / AlignmentView.java
index e668470..58b379b 100644 (file)
@@ -51,7 +51,7 @@ public class AlignmentView
     width = seqcigararray.getWidth(); // visible width
   }
   /**
-   * Create an alignmentView where the first column corresponds with the 'firstcol' column of some reference alignment 
+   * Create an alignmentView where the first column corresponds with the 'firstcol' column of some reference alignment
    * @param sdata
    * @param firstcol
    */
@@ -244,7 +244,7 @@ public class AlignmentView
                 }
                 else
                 {
-                  alignment[s].setSequence(alignment[s].getSequence() +
+                  alignment[s].setSequence(alignment[s].getSequenceAsString() +
                                            mseq[s].getSequence());
                   if (mseq[s].getStart() <= mseq[s].getEnd())
                   {
@@ -276,7 +276,7 @@ public class AlignmentView
                   }
                   else
                   {
-                    alignment[s].setSequence(alignment[s].getSequence() +
+                    alignment[s].setSequence(alignment[s].getSequenceAsString() +
                                              oseq.getSequence());
                     if (oseq.getEnd() >= oseq.getStart())
                     {
@@ -303,7 +303,7 @@ public class AlignmentView
             }
             else
             {
-              alignment[s].setSequence(alignment[s].getSequence() +
+              alignment[s].setSequence(alignment[s].getSequenceAsString() +
                                        hseq.getSequence());
               if (hseq.getEnd() >= hseq.getStart())
               {
@@ -332,7 +332,7 @@ public class AlignmentView
               }
               else
               {
-                alignment[s].setSequence(alignment[s].getSequence() +
+                alignment[s].setSequence(alignment[s].getSequenceAsString() +
                                          mseq[s].getSequence());
                 if (mseq[s].getEnd() >= mseq[s].getStart())
                 {
@@ -366,7 +366,7 @@ public class AlignmentView
                   }
                   else
                   {
-                    alignment[s].setSequence(alignment[s].getSequence() +
+                    alignment[s].setSequence(alignment[s].getSequenceAsString() +
                                              oseq.getSequence());
                     if (oseq.getEnd() >= oseq.getStart())
                     {
@@ -397,7 +397,7 @@ public class AlignmentView
   }
   /**
    * returns simple array of start end positions of visible range on alignment.
-   * vis_start and vis_end are inclusive - use SequenceI.getSubSequence(vis_start, vis_end+1) to recover visible sequence from underlying alignment. 
+   * vis_start and vis_end are inclusive - use SequenceI.getSubSequence(vis_start, vis_end+1) to recover visible sequence from underlying alignment.
    * @return int[] { start_i, end_i } for 1<i<n visible regions.
    */
   public int[] getVisibleContigs() {
@@ -429,7 +429,7 @@ public class AlignmentView
           viscontigs[nvis+1]=contigs[contig+1]-1; // end is inclusive
           nvis+=2;
         }
-        start = contigs[contig + 1] + contigs[contig + 2];              
+        start = contigs[contig + 1] + contigs[contig + 2];
       }
       if (start<fwidth) {
         viscontigs[nvis] = start;
@@ -442,8 +442,8 @@ public class AlignmentView
     }
   }
   /**
-   * 
-   * @return position of first visible column of AlignmentView within its parent's alignment reference frame 
+   *
+   * @return position of first visible column of AlignmentView within its parent's alignment reference frame
    */
   public int getAlignmentOrigin() {
     // TODO Auto-generated method stub