2 * Jalview - A Sequence Alignment Editor and Viewer
\r
3 * Copyright (C) 2007 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
5 * This program is free software; you can redistribute it and/or
\r
6 * modify it under the terms of the GNU General Public License
\r
7 * as published by the Free Software Foundation; either version 2
\r
8 * of the License, or (at your option) any later version.
\r
10 * This program is distributed in the hope that it will be useful,
\r
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 * GNU General Public License for more details.
\r
15 * You should have received a copy of the GNU General Public License
\r
16 * along with this program; if not, write to the Free Software
\r
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
20 package jalview.appletgui;
\r
25 import java.awt.event.*;
\r
27 import jalview.analysis.*;
\r
28 import jalview.commands.*;
\r
29 import jalview.datamodel.*;
\r
30 import jalview.schemes.*;
\r
31 import jalview.io.AppletFormatAdapter;
\r
33 public class APopupMenu
\r
34 extends java.awt.PopupMenu implements ActionListener, ItemListener
\r
36 Menu groupMenu = new Menu();
\r
37 MenuItem editGroupName = new MenuItem();
\r
38 protected MenuItem clustalColour = new MenuItem();
\r
39 protected MenuItem zappoColour = new MenuItem();
\r
40 protected MenuItem taylorColour = new MenuItem();
\r
41 protected MenuItem hydrophobicityColour = new MenuItem();
\r
42 protected MenuItem helixColour = new MenuItem();
\r
43 protected MenuItem strandColour = new MenuItem();
\r
44 protected MenuItem turnColour = new MenuItem();
\r
45 protected MenuItem buriedColour = new MenuItem();
\r
46 protected CheckboxMenuItem abovePIDColour = new CheckboxMenuItem();
\r
47 protected MenuItem userDefinedColour = new MenuItem();
\r
48 protected MenuItem PIDColour = new MenuItem();
\r
49 protected MenuItem BLOSUM62Colour = new MenuItem();
\r
50 MenuItem noColourmenuItem = new MenuItem();
\r
51 protected CheckboxMenuItem conservationMenuItem = new CheckboxMenuItem();
\r
53 final AlignmentPanel ap;
\r
54 MenuItem unGroupMenuItem = new MenuItem();
\r
55 MenuItem nucleotideMenuItem = new MenuItem();
\r
56 Menu colourMenu = new Menu();
\r
57 CheckboxMenuItem showBoxes = new CheckboxMenuItem();
\r
58 CheckboxMenuItem showText = new CheckboxMenuItem();
\r
59 CheckboxMenuItem showColourText = new CheckboxMenuItem();
\r
60 Menu editMenu = new Menu("Edit");
\r
61 MenuItem copy = new MenuItem("Copy (Jalview Only)");
\r
62 MenuItem cut = new MenuItem("Cut (Jalview Only)");
\r
63 MenuItem toUpper = new MenuItem("To Upper Case");
\r
64 MenuItem toLower = new MenuItem("To Lower Case");
\r
65 MenuItem toggleCase = new MenuItem("Toggle Case");
\r
66 Menu outputmenu = new Menu();
\r
67 Menu seqMenu = new Menu();
\r
68 MenuItem pdb = new MenuItem();
\r
69 MenuItem hideSeqs = new MenuItem();
\r
70 MenuItem repGroup = new MenuItem();
\r
71 MenuItem sequenceName = new MenuItem("Edit Name/Description");
\r
72 MenuItem sequenceFeature = new MenuItem("Create Sequence Feature");
\r
73 MenuItem editSequence = new MenuItem("Edit Sequence");
\r
76 MenuItem revealAll = new MenuItem();
\r
77 Menu menu1 = new Menu();
\r
79 public APopupMenu(AlignmentPanel apanel, final Sequence seq, Vector links)
\r
81 ///////////////////////////////////////////////////////////
\r
82 // If this is activated from the sequence panel, the user may want to
\r
83 // edit or annotate a particular residue. Therefore display the residue menu
\r
85 // If from the IDPanel, we must display the sequence menu
\r
86 //////////////////////////////////////////////////////////
\r
97 e.printStackTrace();
\r
100 for (int i = 0; i < jalview.io.AppletFormatAdapter.WRITEABLE_FORMATS.length;
\r
103 MenuItem item = new MenuItem(jalview.io.AppletFormatAdapter.
\r
104 WRITEABLE_FORMATS[i]);
\r
106 item.addActionListener(this);
\r
107 outputmenu.add(item);
\r
110 SequenceGroup sg = ap.av.getSelectionGroup();
\r
112 if (sg != null && sg.getSize() > 0)
\r
114 editGroupName.setLabel(sg.getName());
\r
115 showText.setState(sg.getDisplayText());
\r
116 showColourText.setState(sg.getColourText());
\r
117 showBoxes.setState(sg.getDisplayBoxes());
\r
118 if (!ap.av.alignment.getGroups().contains(sg))
\r
120 groupMenu.remove(unGroupMenuItem);
\r
132 Menu linkMenu = new Menu("Link");
\r
135 for (int i = 0; i < links.size(); i++)
\r
137 link = links.elementAt(i).toString();
\r
138 final String target = link.substring(0, link.indexOf("|"));
\r
139 item = new MenuItem(target);
\r
143 if (link.indexOf("$SEQUENCE_ID$") > -1)
\r
145 String id = seq.getName();
\r
146 if (id.indexOf("|") > -1)
\r
148 id = id.substring(id.lastIndexOf("|") + 1);
\r
151 url = link.substring(link.indexOf("|") + 1,
\r
152 link.indexOf("$SEQUENCE_ID$"))
\r
154 link.substring(link.indexOf("$SEQUENCE_ID$") + 13);
\r
158 url = link.substring(link.lastIndexOf("|") + 1);
\r
161 item.addActionListener(new java.awt.event.ActionListener()
\r
163 public void actionPerformed(ActionEvent e)
\r
165 ap.alignFrame.showURL(url, target);
\r
168 linkMenu.add(item);
\r
172 seqMenu.add(linkMenu);
\r
181 seqMenu.setLabel(seq.getName());
\r
182 repGroup.setLabel("Represent Group with " + seq.getName());
\r
189 if (!ap.av.hasHiddenRows)
\r
195 public void itemStateChanged(ItemEvent evt)
\r
197 if (evt.getSource() == abovePIDColour)
\r
199 abovePIDColour_itemStateChanged();
\r
201 else if (evt.getSource() == showColourText)
\r
203 showColourText_itemStateChanged();
\r
205 else if (evt.getSource() == showText)
\r
207 showText_itemStateChanged();
\r
209 else if (evt.getSource() == showBoxes)
\r
211 showBoxes_itemStateChanged();
\r
215 public void actionPerformed(ActionEvent evt)
\r
217 Object source = evt.getSource();
\r
218 if (source == clustalColour)
\r
220 clustalColour_actionPerformed();
\r
222 else if (source == zappoColour)
\r
224 zappoColour_actionPerformed();
\r
226 else if (source == taylorColour)
\r
228 taylorColour_actionPerformed();
\r
230 else if (source == hydrophobicityColour)
\r
232 hydrophobicityColour_actionPerformed();
\r
234 else if (source == helixColour)
\r
236 helixColour_actionPerformed();
\r
238 else if (source == strandColour)
\r
240 strandColour_actionPerformed();
\r
242 else if (source == turnColour)
\r
244 turnColour_actionPerformed();
\r
246 else if (source == buriedColour)
\r
248 buriedColour_actionPerformed();
\r
250 else if (source == nucleotideMenuItem)
\r
252 nucleotideMenuItem_actionPerformed();
\r
255 else if (source == userDefinedColour)
\r
257 userDefinedColour_actionPerformed();
\r
259 else if (source == PIDColour)
\r
261 PIDColour_actionPerformed();
\r
263 else if (source == BLOSUM62Colour)
\r
265 BLOSUM62Colour_actionPerformed();
\r
267 else if (source == noColourmenuItem)
\r
269 noColourmenuItem_actionPerformed();
\r
271 else if (source == conservationMenuItem)
\r
273 conservationMenuItem_itemStateChanged();
\r
275 else if (source == unGroupMenuItem)
\r
277 unGroupMenuItem_actionPerformed();
\r
280 else if (source == sequenceName)
\r
284 else if (source == pdb)
\r
288 else if (source == hideSeqs)
\r
290 hideSequences(false);
\r
292 else if (source == repGroup)
\r
294 hideSequences(true);
\r
296 else if (source == revealAll)
\r
298 ap.av.showAllHiddenSeqs();
\r
301 else if (source == editGroupName)
\r
303 EditNameDialog dialog = new EditNameDialog(
\r
304 getGroup().getName(),
\r
305 getGroup().getDescription(),
\r
307 "Group Description",
\r
309 "Edit Group Name / Description",
\r
314 getGroup().setName(dialog.getName().replace(' ', '_'));
\r
315 getGroup().setDescription(dialog.getDescription());
\r
319 else if (source == copy)
\r
321 ap.alignFrame.copy_actionPerformed();
\r
323 else if (source == cut)
\r
325 ap.alignFrame.cut_actionPerformed();
\r
327 else if(source == editSequence)
\r
329 SequenceGroup sg = ap.av.getSelectionGroup();
\r
334 seq = (Sequence) sg.getSequenceAt(0);
\r
336 EditNameDialog dialog = new EditNameDialog(seq.getSequenceAsString(
\r
338 sg.getEndRes() + 1),
\r
349 EditCommand editCommand = new EditCommand(
\r
350 "Edit Sequences", EditCommand.REPLACE,
\r
351 dialog.getName().replace(' ', ap.av.getGapCharacter()),
\r
352 sg.getSequencesAsArray(ap.av.hiddenRepSequences),
\r
353 sg.getStartRes(), sg.getEndRes()+1, ap.av.alignment
\r
356 ap.alignFrame.addHistoryItem(editCommand);
\r
358 ap.av.firePropertyChange("alignment", null,
\r
359 ap.av.getAlignment().getSequences());
\r
363 else if (source == toUpper || source == toLower || source == toggleCase)
\r
365 SequenceGroup sg = ap.av.getSelectionGroup();
\r
366 Vector regions = new Vector();
\r
369 int start = sg.getStartRes();
\r
370 int end = sg.getEndRes() + 1;
\r
374 if (ap.av.hasHiddenColumns)
\r
378 start = ap.av.colSel.adjustForHiddenColumns(start);
\r
381 end = ap.av.colSel.getHiddenBoundaryRight(start);
\r
384 end = sg.getEndRes() + 1;
\r
386 if (end > sg.getEndRes())
\r
388 end = sg.getEndRes() + 1;
\r
392 regions.addElement(new int[]
\r
395 if (ap.av.hasHiddenColumns)
\r
397 start = ap.av.colSel.adjustForHiddenColumns(end);
\r
398 start = ap.av.colSel.getHiddenBoundaryLeft(start) + 1;
\r
401 while (end < sg.getEndRes());
\r
403 int[][] startEnd = new int[regions.size()][2];
\r
404 for (int i = 0; i < regions.size(); i++)
\r
406 startEnd[i] = (int[]) regions.elementAt(i);
\r
409 String description;
\r
412 if (source == toggleCase)
\r
414 description = "Toggle Case";
\r
415 caseChange = ChangeCaseCommand.TOGGLE_CASE;
\r
417 else if (source == toUpper)
\r
419 description = "To Upper Case";
\r
420 caseChange = ChangeCaseCommand.TO_UPPER;
\r
424 description = "To Lower Case";
\r
425 caseChange = ChangeCaseCommand.TO_LOWER;
\r
428 ChangeCaseCommand caseCommand = new ChangeCaseCommand(
\r
429 description, sg.getSequencesAsArray(ap.av.hiddenRepSequences),
\r
430 startEnd, caseChange
\r
433 ap.alignFrame.addHistoryItem(caseCommand);
\r
435 ap.av.firePropertyChange("alignment", null,
\r
436 ap.av.getAlignment().getSequences());
\r
440 else if(source == sequenceFeature)
\r
442 SequenceGroup sg = ap.av.getSelectionGroup();
\r
448 int gSize = sg.getSize();
\r
449 SequenceI[] seqs = new SequenceI[gSize];
\r
450 SequenceFeature[] features = new SequenceFeature[gSize];
\r
452 for (int i = 0; i < gSize; i++)
\r
454 seqs[i] = sg.getSequenceAt(i);
\r
455 int start = sg.getSequenceAt(i).findPosition(sg.getStartRes());
\r
456 int end = sg.findEndRes(sg.getSequenceAt(i));
\r
457 features[i] = new SequenceFeature(null, null, null, start, end,
\r
461 if (ap.seqPanel.seqCanvas.getFeatureRenderer()
\r
462 .amendFeatures(seqs, features, true, ap))
\r
464 ap.alignFrame.sequenceFeatures.setState(true);
\r
465 ap.av.showSequenceFeatures(true);
\r
466 ap.highlightSearchResults(null);
\r
476 void outputText(ActionEvent e)
\r
478 CutAndPasteTransfer cap = new CutAndPasteTransfer(true, ap.alignFrame);
\r
480 Frame frame = new Frame();
\r
482 jalview.bin.JalviewLite.addFrame(frame,
\r
483 "Selection output - " + e.getActionCommand(),
\r
486 cap.setText(new jalview.io.AppletFormatAdapter().formatSequences(
\r
487 e.getActionCommand(),
\r
488 new Alignment(ap.av.getSelectionAsNewSequence()),
\r
489 ap.av.showJVSuffix));
\r
495 EditNameDialog dialog = new EditNameDialog(
\r
497 seq.getDescription(),
\r
499 "Sequence Description",
\r
501 "Edit Sequence Name / Description",
\r
506 seq.setName(dialog.getName());
\r
507 seq.setDescription(dialog.getDescription());
\r
508 ap.paintAlignment(false);
\r
514 if(seq.getPDBId()!=null)
\r
516 PDBEntry entry = (PDBEntry)seq.getPDBId().firstElement();
\r
518 if ( ap.av.applet.jmolAvailable )
\r
519 new jalview.appletgui.AppletJmol(entry,
\r
520 new Sequence[]{seq},
\r
523 AppletFormatAdapter.URL);
\r
525 new MCview.AppletPDBViewer(entry,
\r
526 new Sequence[]{seq},
\r
529 AppletFormatAdapter.URL);
\r
534 CutAndPasteTransfer cap = new CutAndPasteTransfer(true, ap.alignFrame);
\r
535 cap.setText("Paste your PDB file here.");
\r
536 cap.setPDBImport(seq);
\r
537 Frame frame = new Frame();
\r
539 jalview.bin.JalviewLite.addFrame(frame, "Paste PDB file ", 400, 300);
\r
543 private void jbInit()
\r
546 groupMenu.setLabel("Group");
\r
547 groupMenu.setLabel("Selection");
\r
548 sequenceFeature.addActionListener(this);
\r
550 editGroupName.addActionListener(this);
\r
551 unGroupMenuItem.setLabel("Remove Group");
\r
552 unGroupMenuItem.addActionListener(this);
\r
554 nucleotideMenuItem.setLabel("Nucleotide");
\r
555 nucleotideMenuItem.addActionListener(this);
\r
556 conservationMenuItem.addItemListener(this);
\r
557 abovePIDColour.addItemListener(this);
\r
558 colourMenu.setLabel("Group Colour");
\r
559 showBoxes.setLabel("Boxes");
\r
560 showBoxes.setState(true);
\r
561 showBoxes.addItemListener(this);
\r
562 sequenceName.addActionListener(this);
\r
564 showText.setLabel("Text");
\r
565 showText.addItemListener(this);
\r
566 showColourText.setLabel("Colour Text");
\r
567 showColourText.addItemListener(this);
\r
568 outputmenu.setLabel("Output to Textbox...");
\r
569 seqMenu.setLabel("Sequence");
\r
570 pdb.setLabel("View PDB Structure");
\r
571 hideSeqs.setLabel("Hide Sequences");
\r
572 repGroup.setLabel("Represent Group with");
\r
573 revealAll.setLabel("Reveal All");
\r
574 menu1.setLabel("Group");
\r
577 this.add(hideSeqs);
\r
578 this.add(revealAll);
\r
579 groupMenu.add(editGroupName);
\r
580 groupMenu.add(editMenu);
\r
581 groupMenu.add(outputmenu);
\r
582 groupMenu.add(sequenceFeature);
\r
583 groupMenu.add(menu1);
\r
585 colourMenu.add(noColourmenuItem);
\r
586 colourMenu.add(clustalColour);
\r
587 colourMenu.add(BLOSUM62Colour);
\r
588 colourMenu.add(PIDColour);
\r
589 colourMenu.add(zappoColour);
\r
590 colourMenu.add(taylorColour);
\r
591 colourMenu.add(hydrophobicityColour);
\r
592 colourMenu.add(helixColour);
\r
593 colourMenu.add(strandColour);
\r
594 colourMenu.add(turnColour);
\r
595 colourMenu.add(buriedColour);
\r
596 colourMenu.add(nucleotideMenuItem);
\r
597 colourMenu.add(userDefinedColour);
\r
598 colourMenu.addSeparator();
\r
599 colourMenu.add(abovePIDColour);
\r
600 colourMenu.add(conservationMenuItem);
\r
602 noColourmenuItem.setLabel("None");
\r
603 noColourmenuItem.addActionListener(this);
\r
605 clustalColour.setLabel("Clustalx colours");
\r
606 clustalColour.addActionListener(this);
\r
607 zappoColour.setLabel("Zappo");
\r
608 zappoColour.addActionListener(this);
\r
609 taylorColour.setLabel("Taylor");
\r
610 taylorColour.addActionListener(this);
\r
611 hydrophobicityColour.setLabel("Hydrophobicity");
\r
612 hydrophobicityColour.addActionListener(this);
\r
613 helixColour.setLabel("Helix propensity");
\r
614 helixColour.addActionListener(this);
\r
615 strandColour.setLabel("Strand propensity");
\r
616 strandColour.addActionListener(this);
\r
617 turnColour.setLabel("Turn propensity");
\r
618 turnColour.addActionListener(this);
\r
619 buriedColour.setLabel("Buried Index");
\r
620 buriedColour.addActionListener(this);
\r
621 abovePIDColour.setLabel("Above % Identity");
\r
623 userDefinedColour.setLabel("User Defined");
\r
624 userDefinedColour.addActionListener(this);
\r
625 PIDColour.setLabel("Percentage Identity");
\r
626 PIDColour.addActionListener(this);
\r
627 BLOSUM62Colour.setLabel("BLOSUM62");
\r
628 BLOSUM62Colour.addActionListener(this);
\r
629 conservationMenuItem.setLabel("Conservation");
\r
631 editMenu.add(copy);
\r
632 copy.addActionListener(this);
\r
634 cut.addActionListener(this);
\r
636 editMenu.add(editSequence);
\r
637 editSequence.addActionListener(this);
\r
639 editMenu.add(toUpper);
\r
640 toUpper.addActionListener(this);
\r
641 editMenu.add(toLower);
\r
642 toLower.addActionListener(this);
\r
643 editMenu.add(toggleCase);
\r
644 seqMenu.add(sequenceName);
\r
646 seqMenu.add(repGroup);
\r
647 menu1.add(unGroupMenuItem);
\r
648 menu1.add(colourMenu);
\r
649 menu1.add(showBoxes);
\r
650 menu1.add(showText);
\r
651 menu1.add(showColourText);
\r
652 toggleCase.addActionListener(this);
\r
653 pdb.addActionListener(this);
\r
654 hideSeqs.addActionListener(this);
\r
655 repGroup.addActionListener(this);
\r
656 revealAll.addActionListener(this);
\r
661 ap.paintAlignment(true);
\r
664 protected void clustalColour_actionPerformed()
\r
666 SequenceGroup sg = getGroup();
\r
667 sg.cs = new ClustalxColourScheme(sg.getSequences(ap.av.hiddenRepSequences),
\r
668 ap.av.alignment.getWidth());
\r
672 protected void zappoColour_actionPerformed()
\r
674 getGroup().cs = new ZappoColourScheme();
\r
678 protected void taylorColour_actionPerformed()
\r
680 getGroup().cs = new TaylorColourScheme();
\r
684 protected void hydrophobicityColour_actionPerformed()
\r
686 getGroup().cs = new HydrophobicColourScheme();
\r
690 protected void helixColour_actionPerformed()
\r
692 getGroup().cs = new HelixColourScheme();
\r
696 protected void strandColour_actionPerformed()
\r
698 getGroup().cs = new StrandColourScheme();
\r
702 protected void turnColour_actionPerformed()
\r
704 getGroup().cs = new TurnColourScheme();
\r
708 protected void buriedColour_actionPerformed()
\r
710 getGroup().cs = new BuriedColourScheme();
\r
714 public void nucleotideMenuItem_actionPerformed()
\r
716 getGroup().cs = new NucleotideColourScheme();
\r
720 protected void abovePIDColour_itemStateChanged()
\r
722 SequenceGroup sg = getGroup();
\r
728 if (abovePIDColour.getState())
\r
730 sg.cs.setConsensus(AAFrequency.calculate(sg.getSequences(ap.av.
\r
731 hiddenRepSequences), 0,
\r
732 ap.av.alignment.getWidth()));
\r
733 int threshold = SliderPanel.setPIDSliderSource(ap, sg.cs,
\r
734 getGroup().getName());
\r
736 sg.cs.setThreshold(threshold, ap.av.getIgnoreGapsConsensus());
\r
738 SliderPanel.showPIDSlider();
\r
741 else // remove PIDColouring
\r
743 sg.cs.setThreshold(0, ap.av.getIgnoreGapsConsensus());
\r
750 protected void userDefinedColour_actionPerformed()
\r
752 new UserDefinedColours(ap, getGroup());
\r
755 protected void PIDColour_actionPerformed()
\r
757 SequenceGroup sg = getGroup();
\r
758 sg.cs = new PIDColourScheme();
\r
759 sg.cs.setConsensus(AAFrequency.calculate(sg.getSequences(ap.av.
\r
760 hiddenRepSequences), 0,
\r
761 ap.av.alignment.getWidth()));
\r
765 protected void BLOSUM62Colour_actionPerformed()
\r
767 SequenceGroup sg = getGroup();
\r
769 sg.cs = new Blosum62ColourScheme();
\r
771 sg.cs.setConsensus(AAFrequency.calculate(sg.getSequences(ap.av.
\r
772 hiddenRepSequences), 0,
\r
773 ap.av.alignment.getWidth()));
\r
778 protected void noColourmenuItem_actionPerformed()
\r
780 getGroup().cs = null;
\r
784 protected void conservationMenuItem_itemStateChanged()
\r
786 SequenceGroup sg = getGroup();
\r
792 if (conservationMenuItem.getState())
\r
795 Conservation c = new Conservation("Group",
\r
796 ResidueProperties.propHash, 3,
\r
797 sg.getSequences(ap.av.
\r
798 hiddenRepSequences), 0,
\r
799 ap.av.alignment.getWidth());
\r
802 c.verdict(false, ap.av.ConsPercGaps);
\r
804 sg.cs.setConservation(c);
\r
806 SliderPanel.setConservationSlider(ap, sg.cs, sg.getName());
\r
807 SliderPanel.showConservationSlider();
\r
809 else // remove ConservationColouring
\r
811 sg.cs.setConservation(null);
\r
817 SequenceGroup getGroup()
\r
819 SequenceGroup sg = ap.av.getSelectionGroup();
\r
821 // this method won't add a new group if it already exists
\r
824 ap.av.alignment.addGroup(sg);
\r
830 void unGroupMenuItem_actionPerformed()
\r
832 SequenceGroup sg = ap.av.getSelectionGroup();
\r
833 ap.av.alignment.deleteGroup(sg);
\r
834 ap.av.setSelectionGroup(null);
\r
835 ap.paintAlignment(true);
\r
838 public void showColourText_itemStateChanged()
\r
840 getGroup().setColourText(showColourText.getState());
\r
844 public void showText_itemStateChanged()
\r
846 getGroup().setDisplayText(showText.getState());
\r
850 public void showBoxes_itemStateChanged()
\r
852 getGroup().setDisplayBoxes(showBoxes.getState());
\r
856 void hideSequences(boolean representGroup)
\r
858 SequenceGroup sg = ap.av.getSelectionGroup();
\r
859 if (sg == null || sg.getSize() < 1)
\r
861 ap.av.hideSequence(new SequenceI[]
\r
866 ap.av.setSelectionGroup(null);
\r
868 if (representGroup)
\r
870 ap.av.hideRepSequences(seq, sg);
\r
875 int gsize = sg.getSize();
\r
878 hseqs = new SequenceI[gsize];
\r
881 for (int i = 0; i < gsize; i++)
\r
883 hseqs[index++] = sg.getSequenceAt(i);
\r
886 ap.av.hideSequence(hseqs);
\r