JAL-2103 propagate inserts only used for reconstructing profile view, currently features/JAL-2103
authorJim Procter <jprocter@issues.jalview.org>
Fri, 13 May 2016 15:08:10 +0000 (16:08 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 13 May 2016 15:08:10 +0000 (16:08 +0100)
src/jalview/ws/jws1/JPredWSUtils.java

index afdd21f..42f0268 100644 (file)
@@ -205,32 +205,22 @@ public class JPredWSUtils
         {
           al.setDataset(null);
         }
-        if (fullAlignment != null)
-        {
-          // map gapMap from positions in visible sequence to positions in
-          // original sequence
-          if (predMap != null)
-          {
-
-          }
-        }
         jalview.io.JnetAnnotationMaker.add_annotation(prediction, al,
                 FirstSeq, true, predMap);
         SequenceI profileseq = al.getSequenceAt(0); // this includes any gaps.
         if (fullAlignment == null)
         {
           alignToProfileSeq(al, profileseq);
-        }
-        if (fullAlignment == null && predMap != null)
-        {
-          // Adjust input view for gaps
-          // propagate insertions into profile
-          alcsel = ColumnSelection.propagateInsertions(profileseq, al,
-                  input);
+          if (predMap != null)
+          {
+            // Adjust input view for gaps
+            // propagate insertions into profile
+            alcsel = ColumnSelection.propagateInsertions(profileseq, al,
+                    input);
+          }
         }
       }
     }
-
     // transfer to dataset
     for (AlignmentAnnotation alant : al.getAlignmentAnnotation())
     {