JAL-2795 removed unneeded distancematrix length/width check
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Fri, 17 Nov 2017 14:43:11 +0000 (14:43 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Fri, 17 Nov 2017 14:43:11 +0000 (14:43 +0000)
src/jalview/ext/forester/DataConversions.java

index b084382..be97e0e 100644 (file)
@@ -18,9 +18,10 @@ public final class DataConversions
       foresterSeq.setName(jalviewSequence.getDescription());
     }
     foresterSeq.setMolecularSequenceAligned(sequenceIsAligned); // all tree
-                                                              // sequences
-                                                              // should
-                                                   // be aligned already
+                                                                // sequences
+                                                                // should
+                                                                // be aligned
+                                                                // already
     foresterSeq.setMolecularSequence(jalviewSequence.getSequenceAsString());
     if (jalviewSequence.isProtein()) // add checks for DNA or RNA (infer from
                                      // forester itself?)
@@ -56,10 +57,6 @@ public final class DataConversions
           final MatrixI jalviewInputMatrix,
           final String[] matrixIdentifiers)
   {
-    if (jalviewInputMatrix.width() != jalviewInputMatrix.height())
-    {
-      // some kind of warning?
-    }
 
     DistanceMatrix foresterMatrix = new ForesterMatrix(jalviewInputMatrix,
             matrixIdentifiers);
@@ -71,10 +68,6 @@ public final class DataConversions
           final MatrixI jalviewInputMatrix,
           final SequenceI[] matrixSequences)
   {
-    if (jalviewInputMatrix.width() != jalviewInputMatrix.height())
-    {
-      // some kind of warning?
-    }
     DistanceMatrix foresterMatrix = new ForesterMatrix(jalviewInputMatrix,
             matrixSequences);
     return foresterMatrix;