JAL-1822 create dataset sequences if they aren’t already created before checking...
authorJim Procter <jprocter@issues.jalview.org>
Wed, 5 Aug 2015 17:09:59 +0000 (18:09 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 5 Aug 2015 17:09:59 +0000 (18:09 +0100)
note JAL-407 - should really search for copies of the nucleotides in the local dataset and merge rather than create new ones willynilly!

src/jalview/gui/AlignViewport.java

index c18c989..29c4fde 100644 (file)
@@ -801,6 +801,17 @@ public class AlignViewport extends AlignmentViewport implements
      */
     if (Cache.getDefault(Preferences.ENABLE_SPLIT_FRAME, true))
     {
+      if (al.getDataset() == null)
+      {
+        // need to create ds seqs
+        for (SequenceI sq : al.getSequences())
+        {
+          if (sq.getDatasetSequence() == null)
+          {
+            sq.createDatasetSequence();
+          }
+        }
+      }
       if (AlignmentUtils.isMappable(al, getAlignment()))
       {
         if (openLinkedAlignment(al, title))