just a comment
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Wed, 11 Oct 2017 14:03:33 +0000 (15:03 +0100)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Wed, 11 Oct 2017 14:54:22 +0000 (15:54 +0100)
src/jalview/analysis/TreeBuilder.java
src/jalview/ext/archaeopteryx/ArchaeopteryxTreeBuilder.java

index b794368..728dd62 100644 (file)
@@ -73,7 +73,7 @@ public abstract class TreeBuilder
 
   Vector<SequenceNode> node;
 
-  private AlignmentView seqStrings;
+  private AlignmentView seqStrings; // redundant? (see seqData)
 
   /**
    * Constructor
index 56f7be9..fb1ebe3 100644 (file)
@@ -47,7 +47,8 @@ public class ArchaeopteryxTreeBuilder // cannot inherit
 
   public Phylogeny buildAptxTree(TreeBuilder tree)
   {
-  this.sequences= tree.getSequences();
+    this.sequences = tree.getSequences();
+    aptxTree.setName("word");
     return buildAptxTree(sequences);
 
   }
@@ -62,8 +63,46 @@ public class ArchaeopteryxTreeBuilder // cannot inherit
       rootNode.addAsChild(treeNode);
 
     }
+
     aptxTree.setRoot(rootNode);
     return aptxTree;
 
   }
+
+  /**
+   * Formats a localised title for the tree panel, like
+   * <p>
+   * Neighbour Joining Using BLOSUM62
+   * <p>
+   * For a tree loaded from file, just uses the file name
+   * 
+   * @return
+   */
+  // public String getPanelTitle()
+  // {
+  // if (treeTitle != null)
+  // {
+  // return treeTitle;
+  // }
+  // else
+  // {
+  // /*
+  // * i18n description of Neighbour Joining or Average Distance method
+  // */
+  // String treecalcnm = MessageManager
+  // .getString("label.tree_calc_" + treeType.toLowerCase());
+  //
+  // /*
+  // * short score model name (long description can be too long)
+  // */
+  // String smn = substitutionMatrix;
+  //
+  // /*
+  // * put them together as <method> Using <model>
+  // */
+  // final String ttl = MessageManager
+  // .formatMessage("label.treecalc_title", treecalcnm, smn);
+  // return ttl;
+  // }
+  // }
 }