X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fanalysis%2Fscoremodels%2FPIDModelTest.java;fp=test%2Fjalview%2Fanalysis%2Fscoremodels%2FPIDModelTest.java;h=6f03f1dcf30c34b36e90639db7e63a7a55224bae;hb=57738a1f3c19b1c3a00bd3ac5108f8cd0af32f99;hp=e8ffd2f691eca7ce389c34dbe5884e4da054a965;hpb=e7338a61f3ce96dadf44ac80b2b32cc5ba4b94c8;p=jalview.git diff --git a/test/jalview/analysis/scoremodels/PIDModelTest.java b/test/jalview/analysis/scoremodels/PIDModelTest.java index e8ffd2f..6f03f1d 100644 --- a/test/jalview/analysis/scoremodels/PIDModelTest.java +++ b/test/jalview/analysis/scoremodels/PIDModelTest.java @@ -146,16 +146,17 @@ public class PIDModelTest { String s1 = "FR-K-S"; String s2 = "FS--L"; - + /* * match gap-gap and gap-char * shorter sequence treated as if with trailing gaps * PID = 5/6 = 83.333...% */ - SimilarityParamsI params = new SimilarityParams(true, true, true, false); + SimilarityParamsI params = new SimilarityParams(true, true, true, + false); assertEquals(PIDModel.computePID(s1, s2, params), 500d / 6); assertEquals(PIDModel.computePID(s2, s1, params), 500d / 6); - + /* * match gap-char but not gap-gap * PID = 4/5 = 80% @@ -163,7 +164,7 @@ public class PIDModelTest params = new SimilarityParams(false, true, true, false); assertEquals(PIDModel.computePID(s1, s2, params), 80d); assertEquals(PIDModel.computePID(s2, s1, params), 80d); - + /* * include gaps but don't match them * include gap-gap, counted as identity @@ -172,7 +173,7 @@ public class PIDModelTest params = new SimilarityParams(true, false, true, false); assertEquals(PIDModel.computePID(s1, s2, params), 100d / 3); assertEquals(PIDModel.computePID(s2, s1, params), 100d / 3); - + /* * include gaps but don't match them * exclude gap-gap