JAL-1632 named parameters
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 24 Mar 2017 12:21:33 +0000 (12:21 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 24 Mar 2017 12:21:33 +0000 (12:21 +0000)
src/jalview/gui/TreeChooser.java

index 4f972ae..fa1195c 100644 (file)
@@ -301,12 +301,15 @@ public class TreeChooser extends JPanel
      * matchOnShortestSequence = false
      * matchGaps = true except false for PCA by PID (to match SeqSpace)
      */
+    boolean includeGapGap = true;
+    boolean includeGapResidue = true;
+    boolean matchOnShortestLength = false;
     boolean matchGap = true;
     if (doPCA && (sm instanceof PIDModel))
     {
       matchGap = false;
     }
-    return new SimilarityParams(true, matchGap, true, false);
+    return new SimilarityParams(includeGapGap, matchGap, includeGapResidue, matchOnShortestLength);
   }
 
   /**