JAL-1565 automatically mark query sequence as the sequence reference and hide any...
authorJim Procter <jprocter@dundee.ac.uk>
Wed, 28 Jan 2015 15:29:32 +0000 (15:29 +0000)
committerJim Procter <jprocter@dundee.ac.uk>
Wed, 28 Jan 2015 15:29:32 +0000 (15:29 +0000)
src/jalview/bin/JalviewLite.java

index dab649e..e022c73 100644 (file)
@@ -2024,6 +2024,12 @@ public class JalviewLite extends Applet implements
                     param, protocol);
             JnetAnnotationMaker.add_annotation(predictions,
                     newAlignFrame.viewport.getAlignment(), 0, false); // false==do
+            SequenceI repseq = newAlignFrame.viewport.getAlignment()
+                    .getSequenceAt(0);
+            newAlignFrame.viewport.getAlignment().setSeqrep(repseq);
+            ColumnSelection cs = new ColumnSelection();
+            cs.hideInsertionsFor(repseq);
+            newAlignFrame.viewport.setColumnSelection(cs);
             // not
             // add
             // sequence