- new FileParse(cm.getNewickString(), DataSourceType.PASTE));
- fin.parse();
- if (fin.getTree() == null)
+ new FileParse(cm.getNewick(), DataSourceType.PASTE));
+ String title = aa.label + " " + cm.getTreeMethod() + " tree"
+ + (aa.sequenceRef != null
+ ? (" for " + aa.sequenceRef.getDisplayId(false))
+ : "");
+
+ showColumnWiseTree(fin, aa, title, w, h, x, y);
+ } catch (Throwable xx)
+ {
+ Console.error("Unexpected exception showing tree for contact matrix",
+ xx);
+ }
+ }
+
+ public TreePanel showColumnWiseTree(NewickFile nf, AlignmentAnnotation aa,
+ String treeTitle, int w, int h, int x, int y)
+ {
+ try
+ {
+ nf.parse();
+ if (nf.getTree() == null)