2 * Jalview - A Sequence Alignment Editor and Viewer
\r
3 * Copyright (C) 2006 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
26 import jalview.analysis.*;
\r
27 import jalview.bin.*;
\r
28 import jalview.datamodel.*;
\r
29 import jalview.schemes.*;
\r
31 public class AlignViewport
\r
40 boolean cursorMode = false;
\r
42 boolean showJVSuffix = true;
\r
43 boolean showText = true;
\r
44 boolean showColourText = false;
\r
45 boolean showBoxes = true;
\r
46 boolean wrapAlignment = false;
\r
47 boolean renderGaps = true;
\r
48 boolean showSequenceFeatures = false;
\r
49 boolean showAnnotation = true;
\r
50 boolean showConservation = true;
\r
51 boolean showQuality = true;
\r
52 boolean showConsensus = true;
\r
53 boolean upperCasebold = false;
\r
55 boolean colourAppliesToAllGroups = true;
\r
56 ColourSchemeI globalColourScheme = null;
\r
57 boolean conservationColourSelected = false;
\r
58 boolean abovePIDThreshold = false;
\r
60 SequenceGroup selectionGroup;
\r
66 Font font = new Font("SansSerif", Font.PLAIN, 10);
\r
67 boolean validCharWidth = true;
\r
68 AlignmentI alignment;
\r
70 ColumnSelection colSel = new ColumnSelection();
\r
75 NJTree currentTree = null;
\r
77 boolean scaleAboveWrapped = true;
\r
78 boolean scaleLeftWrapped = true;
\r
79 boolean scaleRightWrapped = true;
\r
81 // The following vector holds the features which are
\r
82 // currently visible, in the correct order or rendering
\r
83 public Hashtable featuresDisplayed;
\r
85 boolean hasHiddenColumns = false;
\r
86 boolean hasHiddenRows = false;
\r
87 boolean showHiddenMarkers = true;
\r
90 public Hashtable [] hconsensus;
\r
91 AlignmentAnnotation consensus;
\r
92 AlignmentAnnotation conservation;
\r
93 AlignmentAnnotation quality;
\r
95 boolean autocalculateConsensus = true;
\r
97 public int ConsPercGaps = 25; // JBPNote : This should be a scalable property!
\r
99 private java.beans.PropertyChangeSupport changeSupport = new java.beans.PropertyChangeSupport(this);
\r
101 boolean ignoreGapsInConsensusCalculation = false;
\r
103 jalview.bin.JalviewLite applet;
\r
105 boolean MAC = false;
\r
107 public AlignViewport(AlignmentI al, JalviewLite applet)
\r
109 this.applet = applet;
\r
112 this.endRes = al.getWidth() - 1;
\r
114 this.endSeq = al.getHeight() - 1;
\r
117 if(System.getProperty("os.name").startsWith("Mac"))
\r
120 if (applet != null)
\r
122 String param = applet.getParameter("showFullId");
\r
125 showJVSuffix = Boolean.valueOf(param).booleanValue();
\r
128 param = applet.getParameter("showAnnotation");
\r
131 showAnnotation = Boolean.valueOf(param).booleanValue();
\r
134 param = applet.getParameter("showConservation");
\r
137 showConservation = Boolean.valueOf(param).booleanValue();
\r
140 param = applet.getParameter("showQuality");
\r
143 showQuality = Boolean.valueOf(param).booleanValue();
\r
146 param = applet.getParameter("showConsensus");
\r
149 showConsensus = Boolean.valueOf(param).booleanValue();
\r
152 param = applet.getParameter("upperCase");
\r
155 if(param.equalsIgnoreCase("bold"))
\r
156 upperCasebold = true;
\r
160 // We must set conservation and consensus before setting colour,
\r
161 // as Blosum and Clustal require this to be done
\r
162 updateConservation();
\r
166 if (applet != null)
\r
168 String colour = applet.getParameter("defaultColour");
\r
172 colour = applet.getParameter("userDefinedColour");
\r
174 colour = "User Defined";
\r
179 globalColourScheme = ColourSchemeProperty.getColour(alignment, colour);
\r
180 if (globalColourScheme != null)
\r
182 globalColourScheme.setConsensus(hconsensus);
\r
186 if(applet.getParameter("userDefinedColour")!=null)
\r
188 ((UserColourScheme)globalColourScheme).parseAppletParameter(
\r
189 applet.getParameter("userDefinedColour"));
\r
196 public void showSequenceFeatures(boolean b)
\r
198 showSequenceFeatures = b;
\r
201 public boolean getShowSequenceFeatures()
\r
203 return showSequenceFeatures;
\r
207 public void updateConservation()
\r
209 if(alignment.isNucleotide())
\r
212 Conservation cons = new jalview.analysis.Conservation("All",
\r
213 jalview.schemes.ResidueProperties.propHash, 3,
\r
214 alignment.getSequences(), 0,
\r
215 alignment.getWidth() - 1);
\r
217 cons.verdict(false, ConsPercGaps);
\r
218 cons.findQuality();
\r
219 int alWidth = alignment.getWidth();
\r
220 Annotation[] annotations = new Annotation[alWidth];
\r
221 Annotation[] qannotations = new Annotation[alWidth];
\r
222 String sequence = cons.getConsSequence().getSequence();
\r
223 float minR, minG, minB, maxR, maxG, maxB;
\r
227 maxR = 1.0f - minR;
\r
228 maxG = 0.9f - minG;
\r
229 maxB = 0f - minB; // scalable range for colouring both Conservation and Quality
\r
232 float qmin = cons.qualityRange[0].floatValue();
\r
233 float qmax = cons.qualityRange[1].floatValue();
\r
235 for (int i = 0; i < alWidth; i++)
\r
240 value = Integer.parseInt(sequence.charAt(i) + "");
\r
242 catch (Exception ex)
\r
244 if (sequence.charAt(i) == '*')
\r
248 if (sequence.charAt(i) == '+')
\r
253 float vprop = value - min;
\r
256 annotations[i] = new Annotation(sequence.charAt(i) + "",
\r
258 new Color(minR + maxR * vprop,
\r
259 minG + maxG * vprop,
\r
260 minB + maxB * vprop));
\r
262 value = ( (Double) cons.quality.elementAt(i)).floatValue();
\r
263 vprop = value - qmin;
\r
265 qannotations[i] = new Annotation(" ",
\r
266 String.valueOf(value), ' ', value,
\r
268 Color(minR + maxR * vprop,
\r
269 minG + maxG * vprop,
\r
270 minB + maxB * vprop));
\r
273 if (conservation == null)
\r
275 conservation = new AlignmentAnnotation("Conservation",
\r
276 "Conservation of total alignment less than " +
\r
277 ConsPercGaps + "% gaps",
\r
279 0f, // cons.qualityRange[0].floatValue(),
\r
280 11f, // cons.qualityRange[1].floatValue()
\r
281 AlignmentAnnotation.BAR_GRAPH);
\r
282 if (showConservation)
\r
284 alignment.addAnnotation(conservation);
\r
286 quality = new AlignmentAnnotation("Quality",
\r
287 "Alignment Quality based on Blosum62 scores",
\r
289 cons.qualityRange[0].floatValue(),
\r
290 cons.qualityRange[1].floatValue(),
\r
291 AlignmentAnnotation.BAR_GRAPH);
\r
294 alignment.addAnnotation(quality);
\r
299 conservation.annotations = annotations;
\r
300 quality.annotations = qannotations;
\r
301 quality.graphMax = cons.qualityRange[1].floatValue();
\r
306 public void updateConsensus()
\r
308 // this routine prevents vconsensus becoming a new object each time
\r
309 // consenus is calculated. Important for speed of Blosum62
\r
310 // and PID colouring of alignment
\r
311 int aWidth = alignment.getWidth();
\r
313 Annotation[] annotations = new Annotation[aWidth];
\r
315 hconsensus = new Hashtable[aWidth];
\r
316 AAFrequency.calculate(alignment.getSequencesArray(),
\r
320 for (int i = 0; i < aWidth; i++)
\r
323 if(ignoreGapsInConsensusCalculation)
\r
324 value = ((Float)hconsensus[i].get("pid_nogaps")).floatValue();
\r
326 value = ((Float)hconsensus[i].get("pid_gaps")).floatValue();
\r
328 String maxRes = hconsensus[i].get("maxResidue").toString();
\r
329 String mouseOver = hconsensus[i].get("maxResidue") + " ";
\r
330 if (maxRes.length() > 1)
\r
332 mouseOver = "[" + maxRes + "] ";
\r
337 mouseOver += (int) value + "%";
\r
338 annotations[i] = new Annotation(maxRes, mouseOver, ' ', value);
\r
342 if (consensus == null)
\r
344 consensus = new AlignmentAnnotation("Consensus",
\r
345 "PID", annotations, 0f, 100f, AlignmentAnnotation.BAR_GRAPH);
\r
348 alignment.addAnnotation(consensus);
\r
353 consensus.annotations = annotations;
\r
356 if(globalColourScheme!=null)
\r
357 globalColourScheme.setConsensus(hconsensus);
\r
361 * get the consensus sequence as displayed under the PID consensus annotation row.
\r
362 * @return consensus sequence as a new sequence object
\r
365 * get the consensus sequence as displayed under the PID consensus annotation row.
\r
366 * @return consensus sequence as a new sequence object
\r
368 public SequenceI getConsensusSeq() {
\r
369 if (consensus==null)
\r
371 if (consensus==null)
\r
373 StringBuffer seqs=new StringBuffer();
\r
374 for (int i=0; i<consensus.annotations.length; i++) {
\r
375 if (consensus.annotations[i]!=null) {
\r
376 if (consensus.annotations[i].description.charAt(0) == '[')
\r
377 seqs.append(consensus.annotations[i].description.charAt(1));
\r
379 seqs.append(consensus.annotations[i].displayCharacter);
\r
382 SequenceI sq = new Sequence("Consensus", seqs.toString());
\r
383 sq.setDescription("Percentage Identity Consensus "+((ignoreGapsInConsensusCalculation) ? " without gaps" : ""));
\r
386 public SequenceGroup getSelectionGroup()
\r
388 return selectionGroup;
\r
391 public void setSelectionGroup(SequenceGroup sg)
\r
393 selectionGroup = sg;
\r
396 public boolean getConservationSelected()
\r
398 return conservationColourSelected;
\r
401 public void setConservationSelected(boolean b)
\r
403 conservationColourSelected = b;
\r
406 public boolean getAbovePIDThreshold()
\r
408 return abovePIDThreshold;
\r
411 public void setAbovePIDThreshold(boolean b)
\r
413 abovePIDThreshold = b;
\r
416 public int getStartRes()
\r
421 public int getEndRes()
\r
426 public int getStartSeq()
\r
431 public void setGlobalColourScheme(ColourSchemeI cs)
\r
433 globalColourScheme = cs;
\r
436 public ColourSchemeI getGlobalColourScheme()
\r
438 return globalColourScheme;
\r
441 public void setStartRes(int res)
\r
443 this.startRes = res;
\r
446 public void setStartSeq(int seq)
\r
448 this.startSeq = seq;
\r
451 public void setEndRes(int res)
\r
453 if (res > alignment.getWidth() - 1)
\r
455 // log.System.out.println(" Corrected res from " + res + " to maximum " + (alignment.getWidth()-1));
\r
456 res = alignment.getWidth() - 1;
\r
465 public void setEndSeq(int seq)
\r
467 if (seq > alignment.getHeight())
\r
469 seq = alignment.getHeight();
\r
478 public int getEndSeq()
\r
483 java.awt.Frame nullFrame;
\r
484 public void setFont(Font f)
\r
487 if(nullFrame == null)
\r
489 nullFrame = new java.awt.Frame();
\r
490 nullFrame.addNotify();
\r
493 java.awt.FontMetrics fm = nullFrame.getGraphics().getFontMetrics(font);
\r
494 setCharHeight(fm.getHeight());
\r
495 charWidth = fm.charWidth('M');
\r
499 Font f2 = new Font(f.getName(), Font.BOLD, f.getSize());
\r
500 fm = nullFrame.getGraphics().getFontMetrics(f2);
\r
501 charWidth = fm.stringWidth("MMMMMMMMMMM") / 10;
\r
505 public Font getFont()
\r
510 public int getCharWidth()
\r
515 public void setCharHeight(int h)
\r
517 this.charHeight = h;
\r
520 public int getCharHeight()
\r
525 public void setWrappedWidth(int w)
\r
527 this.wrappedWidth = w;
\r
530 public int getwrappedWidth()
\r
532 return wrappedWidth;
\r
535 public AlignmentI getAlignment()
\r
540 public void setAlignment(AlignmentI align)
\r
542 this.alignment = align;
\r
545 public void setWrapAlignment(boolean state)
\r
547 wrapAlignment = state;
\r
550 public void setShowText(boolean state)
\r
555 public void setRenderGaps(boolean state)
\r
557 renderGaps = state;
\r
560 public boolean getColourText()
\r
562 return showColourText;
\r
565 public void setColourText(boolean state)
\r
567 showColourText = state;
\r
570 public void setShowBoxes(boolean state)
\r
575 public boolean getWrapAlignment()
\r
577 return wrapAlignment;
\r
580 public boolean getShowText()
\r
585 public boolean getShowBoxes()
\r
590 public char getGapCharacter()
\r
592 return getAlignment().getGapCharacter();
\r
595 public void setGapCharacter(char gap)
\r
597 if (getAlignment() != null)
\r
599 getAlignment().setGapCharacter(gap);
\r
603 public void setThreshold(int thresh)
\r
605 threshold = thresh;
\r
608 public int getThreshold()
\r
613 public void setIncrement(int inc)
\r
618 public int getIncrement()
\r
623 public void setHiddenColumns(ColumnSelection colsel)
\r
625 this.colSel = colsel;
\r
626 if(colSel.getHiddenColumns()!=null)
\r
627 hasHiddenColumns = true;
\r
630 public ColumnSelection getColumnSelection()
\r
635 public void resetSeqLimits(int height)
\r
637 setEndSeq(height / getCharHeight());
\r
640 public void setCurrentTree(NJTree tree)
\r
642 currentTree = tree;
\r
645 public NJTree getCurrentTree()
\r
647 return currentTree;
\r
650 public void setColourAppliesToAllGroups(boolean b)
\r
652 colourAppliesToAllGroups = b;
\r
655 public boolean getColourAppliesToAllGroups()
\r
657 return colourAppliesToAllGroups;
\r
660 public boolean getShowJVSuffix()
\r
662 return showJVSuffix;
\r
665 public void setShowJVSuffix(boolean b)
\r
670 public boolean getShowAnnotation()
\r
672 return showAnnotation;
\r
675 public void setShowAnnotation(boolean b)
\r
677 showAnnotation = b;
\r
680 public boolean getScaleAboveWrapped()
\r
682 return scaleAboveWrapped;
\r
685 public boolean getScaleLeftWrapped()
\r
687 return scaleLeftWrapped;
\r
690 public boolean getScaleRightWrapped()
\r
692 return scaleRightWrapped;
\r
695 public void setScaleAboveWrapped(boolean b)
\r
697 scaleAboveWrapped = b;
\r
700 public void setScaleLeftWrapped(boolean b)
\r
702 scaleLeftWrapped = b;
\r
705 public void setScaleRightWrapped(boolean b)
\r
707 scaleRightWrapped = b;
\r
710 public void setIgnoreGapsConsensus(boolean b)
\r
712 ignoreGapsInConsensusCalculation = b;
\r
714 if (globalColourScheme!=null)
\r
716 globalColourScheme.setThreshold(globalColourScheme.getThreshold(),
\r
717 ignoreGapsInConsensusCalculation);
\r
723 * Property change listener for changes in alignment
\r
725 * @param listener DOCUMENT ME!
\r
727 public void addPropertyChangeListener(
\r
728 java.beans.PropertyChangeListener listener)
\r
730 changeSupport.addPropertyChangeListener(listener);
\r
736 * @param listener DOCUMENT ME!
\r
738 public void removePropertyChangeListener(
\r
739 java.beans.PropertyChangeListener listener)
\r
741 changeSupport.removePropertyChangeListener(listener);
\r
745 * Property change listener for changes in alignment
\r
747 * @param prop DOCUMENT ME!
\r
748 * @param oldvalue DOCUMENT ME!
\r
749 * @param newvalue DOCUMENT ME!
\r
751 public void firePropertyChange(String prop, Object oldvalue, Object newvalue)
\r
753 changeSupport.firePropertyChange(prop, oldvalue, newvalue);
\r
758 public boolean getIgnoreGapsConsensus()
\r
760 return ignoreGapsInConsensusCalculation;
\r
762 public void hideSelectedColumns()
\r
764 if (colSel.size() < 1)
\r
767 colSel.hideSelectedColumns();
\r
768 setSelectionGroup(null);
\r
770 hasHiddenColumns = true;
\r
773 public void invertColumnSelection()
\r
776 for (int i = 0; i < alignment.getWidth(); i++)
\r
780 if (colSel.contains(column))
\r
781 colSel.removeElement(column);
\r
783 colSel.addElement(column);
\r
789 public void hideColumns(int start, int end)
\r
792 colSel.hideColumns(start);
\r
794 colSel.hideColumns(start, end);
\r
796 hasHiddenColumns = true;
\r
799 public void hideAllSelectedSeqs()
\r
801 if (selectionGroup == null)
\r
804 SequenceI[] seqs = selectionGroup.getSequencesInOrder(alignment);
\r
806 hideSequence(seqs);
\r
808 setSelectionGroup(null);
\r
811 public void hideSequence(SequenceI [] seq)
\r
815 for (int i = 0; i < seq.length; i++)
\r
816 alignment.getHiddenSequences().hideSequence(seq[i]);
\r
818 hasHiddenRows = true;
\r
819 firePropertyChange("alignment", null, alignment.getSequences());
\r
823 public void showColumn(int col)
\r
825 colSel.revealHiddenColumns(col);
\r
826 if(colSel.getHiddenColumns()==null)
\r
827 hasHiddenColumns = false;
\r
830 public void showAllHiddenColumns()
\r
832 colSel.revealAllHiddenColumns();
\r
833 hasHiddenColumns = false;
\r
836 public void showAllHiddenSeqs()
\r
838 if(alignment.getHiddenSequences().getSize()>0)
\r
840 if(selectionGroup==null)
\r
842 selectionGroup = new SequenceGroup();
\r
843 selectionGroup.setEndRes(alignment.getWidth()-1);
\r
845 Vector tmp = alignment.getHiddenSequences().showAll();
\r
846 for(int t=0; t<tmp.size(); t++)
\r
848 selectionGroup.addSequence(
\r
849 (SequenceI)tmp.elementAt(t), false
\r
852 firePropertyChange("alignment", null, alignment.getSequences());
\r
853 hasHiddenRows = false;
\r
857 public int adjustForHiddenSeqs(int alignmentIndex)
\r
859 return alignment.getHiddenSequences().adjustForHiddenSeqs(alignmentIndex);
\r
863 * This method returns the a new SequenceI [] with
\r
864 * the selection sequence and start and end points adjusted
\r
867 public SequenceI[] getSelectionAsNewSequence()
\r
869 SequenceI[] sequences;
\r
871 if (selectionGroup == null)
\r
872 sequences = alignment.getSequencesArray();
\r
874 sequences = selectionGroup.getSelectionAsNewSequences(alignment);
\r
880 * This method returns the visible alignment as text, as
\r
881 * seen on the GUI, ie if columns are hidden they will not
\r
882 * be returned in the result.
\r
883 * Use this for calculating trees, PCA, redundancy etc on views
\r
884 * which contain hidden columns.
\r
887 public jalview.datamodel.CigarArray getViewAsCigars(boolean selectedRegionOnly)
\r
889 CigarArray selection=null;
\r
890 SequenceI [] seqs= null;
\r
892 int start = 0, end = 0;
\r
893 if(selectedRegionOnly && selectionGroup!=null)
\r
895 iSize = selectionGroup.getSize(false);
\r
896 seqs = selectionGroup.getSequencesInOrder(alignment);
\r
897 start = selectionGroup.getStartRes();
\r
898 end = selectionGroup.getEndRes(); // inclusive for start and end in SeqCigar constructor
\r
902 iSize = alignment.getHeight();
\r
903 seqs = alignment.getSequencesArray();
\r
904 end = alignment.getWidth()-1;
\r
906 SeqCigar[] selseqs = new SeqCigar[iSize];
\r
907 for(i=0; i<iSize; i++)
\r
909 selseqs[i] = new SeqCigar(seqs[i], start, end);
\r
911 selection=new CigarArray(selseqs);
\r
912 // now construct the CigarArray operations
\r
913 if (hasHiddenColumns) {
\r
914 Vector regions = colSel.getHiddenColumns();
\r
916 int hideStart, hideEnd;
\r
918 for (int j = 0; last<end & j < regions.size(); j++)
\r
920 region = (int[]) regions.elementAt(j);
\r
921 hideStart = region[0];
\r
922 hideEnd = region[1];
\r
923 // edit hidden regions to selection range
\r
924 if(hideStart<last) {
\r
925 if (hideEnd > last)
\r
938 if (hideStart>hideEnd)
\r
941 * form operations...
\r
943 if (last<hideStart)
\r
944 selection.addOperation(CigarArray.M, hideStart-last);
\r
945 selection.addOperation(CigarArray.D, 1+hideEnd-hideStart);
\r
948 // Final match if necessary.
\r
950 selection.addOperation(CigarArray.M, end-last+1);
\r
952 selection.addOperation(CigarArray.M, end-start+1);
\r
957 * return a compact representation of the current alignment selection to
\r
958 * pass to an analysis function
\r
959 * @param selectedOnly boolean true to just return the selected view
\r
960 * @return AlignmentView
\r
962 jalview.datamodel.AlignmentView getAlignmentView(boolean selectedOnly) {
\r
964 // this is here because the AlignmentView constructor modifies the CigarArray
\r
965 // object. Refactoring of Cigar and alignment view representation should
\r
966 // be done to remove redundancy.
\r
967 CigarArray aligview = getViewAsCigars(selectedOnly);
\r
968 if (aligview!=null)
\r
969 return new AlignmentView(aligview);
\r
973 * This method returns the visible alignment as text, as
\r
974 * seen on the GUI, ie if columns are hidden they will not
\r
975 * be returned in the result.
\r
976 * Use this for calculating trees, PCA, redundancy etc on views
\r
977 * which contain hidden columns.
\r
980 public String [] getViewAsString(boolean selectedRegionOnly)
\r
982 String [] selection = null;
\r
983 SequenceI [] seqs= null;
\r
985 int start = 0, end = 0;
\r
986 if(selectedRegionOnly && selectionGroup!=null)
\r
988 iSize = selectionGroup.getSize(false);
\r
989 seqs = selectionGroup.getSequencesInOrder(alignment);
\r
990 start = selectionGroup.getStartRes();
\r
991 end = selectionGroup.getEndRes()+1;
\r
995 iSize = alignment.getHeight();
\r
996 seqs = alignment.getSequencesArray();
\r
997 end = alignment.getWidth();
\r
1000 selection = new String[iSize];
\r
1003 for(i=0; i<iSize; i++)
\r
1005 if (hasHiddenColumns)
\r
1007 StringBuffer visibleSeq = new StringBuffer();
\r
1008 Vector regions = colSel.getHiddenColumns();
\r
1010 int blockStart = start, blockEnd=end;
\r
1012 int hideStart, hideEnd;
\r
1014 for (int j = 0; j < regions.size(); j++)
\r
1016 region = (int[]) regions.elementAt(j);
\r
1017 hideStart = region[0];
\r
1018 hideEnd = region[1];
\r
1020 if(hideStart < start)
\r
1025 blockStart = Math.min(blockStart, hideEnd+1);
\r
1026 blockEnd = Math.min(blockEnd, hideStart);
\r
1028 if(blockStart>blockEnd)
\r
1034 visibleSeq.append(seqs[i].getSequence(blockStart, blockEnd));
\r
1036 blockStart = hideEnd+1;
\r
1040 if(end>blockStart)
\r
1041 visibleSeq.append(seqs[i].getSequence(blockStart, end));
\r
1043 selection[i] = visibleSeq.toString();
\r
1047 selection[i] = seqs[i].getSequence(start, end);
\r
1054 public boolean getShowHiddenMarkers()
\r
1056 return showHiddenMarkers;
\r
1059 public void setShowHiddenMarkers(boolean show)
\r
1061 showHiddenMarkers = show;
\r