JAL-1479 improved SiftsClient test coverage and implemented previously unimplemented...
[jalview.git] / src / jalview / datamodel / HiddenSequences.java
index 929e56e..db4c858 100755 (executable)
@@ -254,6 +254,12 @@ public class HiddenSequences
     return alignmentIndex;
   }
 
+  /**
+   * makes a copy of the alignment with hidden sequences included. Using the
+   * copy for anything other than simple output is not recommended. Note - this
+   * method DOES NOT USE THE AlignmentI COPY CONSTRUCTOR!
+   * @return
+   */
   public AlignmentI getFullAlignment()
   {
     int isize = hiddenSequences.length;
@@ -272,8 +278,14 @@ public class HiddenSequences
         index++;
       }
     }
-
-    return new Alignment(seq);
+    Alignment fAlignmt = new Alignment(seq);
+    fAlignmt.annotations = alignment.getAlignmentAnnotation();
+    fAlignmt.alignmentProperties = alignment.getProperties();
+    fAlignmt.groups = alignment.getGroups();
+    fAlignmt.hasRNAStructure = alignment.hasRNAStructure();
+    fAlignmt.setSeqrep(alignment.getSeqrep());
+
+    return fAlignmt;
   }
 
   public boolean isHidden(SequenceI seq)