JAL-2795 moved matrix conversion to the ForesterMatrix class
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Thu, 2 Nov 2017 12:11:33 +0000 (12:11 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Thu, 2 Nov 2017 12:11:33 +0000 (12:11 +0000)
src/jalview/ext/archaeopteryx/MatrixConverter.java [deleted file]
src/jalview/ext/forester/ForesterMatrix.java

diff --git a/src/jalview/ext/archaeopteryx/MatrixConverter.java b/src/jalview/ext/archaeopteryx/MatrixConverter.java
deleted file mode 100644 (file)
index ef44030..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-package jalview.ext.archaeopteryx;
-
-import jalview.datamodel.SequenceI;
-import jalview.ext.forester.ForesterMatrix;
-import jalview.math.MatrixI;
-
-import org.forester.evoinference.matrix.distance.DistanceMatrix;
-
-public final class MatrixConverter
-{
-  /**
-   * Shouldn't get instantiated
-   */
-  private MatrixConverter()
-  {
-
-  }
-
-
-  public static DistanceMatrix convertJalviewToForester(
-          final MatrixI jalviewInputMatrix,
-          final SequenceI[] matrixSequences)
-  {
-    if (jalviewInputMatrix.width() != jalviewInputMatrix.height())
-    {
-      // some kind of warning?
-    }
-       DistanceMatrix foresterMatrix = new ForesterMatrix(jalviewInputMatrix,
-            matrixSequences);
-    return foresterMatrix;
-
-
-  }
-
-  public static DistanceMatrix convertJalviewToForester(
-          final MatrixI jalviewInputMatrix,
-          final String[] matrixIdentifiers)
-  {
-    if (jalviewInputMatrix.width() != jalviewInputMatrix.height())
-    {
-      // some kind of warning?
-    }
-
-    DistanceMatrix foresterMatrix = new ForesterMatrix(jalviewInputMatrix,
-            matrixIdentifiers);
-    return foresterMatrix;
-
-
-  }
-
-
-
-
-}
index e0f2994..a1381be 100644 (file)
@@ -163,5 +163,34 @@ public class ForesterMatrix implements DistanceMatrix
 
   }
 
+  public static DistanceMatrix convertJalviewToForester(
+          final MatrixI jalviewInputMatrix,
+          final SequenceI[] matrixSequences)
+  {
+    if (jalviewInputMatrix.width() != jalviewInputMatrix.height())
+    {
+      // some kind of warning?
+    }
+    DistanceMatrix foresterMatrix = new ForesterMatrix(jalviewInputMatrix,
+            matrixSequences);
+    return foresterMatrix;
+
+  }
+
+  public static DistanceMatrix convertJalviewToForester(
+          final MatrixI jalviewInputMatrix,
+          final String[] matrixIdentifiers)
+  {
+    if (jalviewInputMatrix.width() != jalviewInputMatrix.height())
+    {
+      // some kind of warning?
+    }
+
+    DistanceMatrix foresterMatrix = new ForesterMatrix(jalviewInputMatrix,
+            matrixIdentifiers);
+    return foresterMatrix;
+
+  }
+
 
 }
\ No newline at end of file