// create new alignmnt window with hidden regions (unhiding hidden regions yields unaligned seqs)\r
// or create a selection box around columns in alignment view\r
// test Alignment(SeqCigar[])\r
- Object[] alAndColsel = tree.seqData.getAlignmentAndColumnSelection(av.\r
- getGapCharacter());\r
-\r
- if (alAndColsel != null && alAndColsel[0]!=null)\r
- {\r
- Alignment al = new Alignment( (SequenceI[]) alAndColsel[0]);\r
- AlignFrame af = new AlignFrame(al,\r
- av.applet,\r
- "Original Data for Tree",\r
- false);\r
-\r
- af.viewport.setHiddenColumns( (ColumnSelection) alAndColsel[1] );\r
- }\r
+ if(tree.seqData!=null)\r
+ {\r
+ Object[] alAndColsel = tree.seqData.getAlignmentAndColumnSelection(av.\r
+ getGapCharacter());\r
+\r
+ if (alAndColsel != null && alAndColsel[0] != null)\r
+ {\r
+ Alignment al = new Alignment( (SequenceI[]) alAndColsel[0]);\r
+ AlignFrame af = new AlignFrame(al,\r
+ av.applet,\r
+ "Original Data for Tree",\r
+ false);\r
+\r
+ af.viewport.setHiddenColumns( (ColumnSelection) alAndColsel[1]);\r
+ }\r
+ }\r
+ else\r
+ System.out.println("Original Tree Data not available");\r
}\r
\r
class TreeLoader extends Thread\r