Merge branch 'kjvdh/features/PhylogenyViewer' of
[jalview.git] / src / jalview / ext / forester / ForesterMatrix.java
index e0f2994..a12dc1d 100644 (file)
@@ -31,7 +31,6 @@ public class ForesterMatrix implements DistanceMatrix
     this.identifiers = new String[matrixSequences.length];
 
     int i = 0;
-
     for (SequenceI sequence : matrixSequences)
     {
       identifiers[i] = sequence.getName();
@@ -163,5 +162,23 @@ public class ForesterMatrix implements DistanceMatrix
 
   }
 
+  public static DistanceMatrix convertJalviewToForester(
+          final MatrixI jalviewInputMatrix,
+          final SequenceI[] matrixSequences)
+  {
+    return DataConversions.createForesterDistanceMatrix(
+            jalviewInputMatrix, matrixSequences);
+
+  }
+
+  public static DistanceMatrix convertJalviewToForester(
+          final MatrixI jalviewInputMatrix,
+          final String[] matrixIdentifiers)
+  {
+    return DataConversions.createForesterDistanceMatrix(
+            jalviewInputMatrix, matrixIdentifiers);
+
+  }
+
 
 }
\ No newline at end of file