From 791d884e8d8d7ced656bf0ab3f538d6880badf24 Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Fri, 17 Nov 2017 14:43:11 +0000 Subject: [PATCH] JAL-2795 removed unneeded distancematrix length/width check --- src/jalview/ext/forester/DataConversions.java | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/jalview/ext/forester/DataConversions.java b/src/jalview/ext/forester/DataConversions.java index b084382..be97e0e 100644 --- a/src/jalview/ext/forester/DataConversions.java +++ b/src/jalview/ext/forester/DataConversions.java @@ -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; -- 1.7.10.2