JAL-2403 PIDModel added (wip)
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 24 Feb 2017 15:23:14 +0000 (15:23 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 24 Feb 2017 15:23:14 +0000 (15:23 +0000)
src/jalview/analysis/scoremodels/ScoreModels.java
test/jalview/analysis/scoremodels/ScoreModelsTest.java

index 011d8ba..41b99e2 100644 (file)
@@ -49,9 +49,9 @@ public class ScoreModels
     models = new LinkedHashMap<String, ScoreModelI>();
     BLOSUM62 = loadScoreMatrix("scoreModel/blosum62.scm");
     PAM250 = loadScoreMatrix("scoreModel/pam250.scm");
-    loadScoreMatrix("scoreModel/seqspace.scm");
+    // loadScoreMatrix("scoreModel/seqspace.scm");
     // drop seqspace.scm for IdentityScoreModel once JAL-2379 merged in?
-    // registerScoreModel(new IdentityScoreModel());
+    registerScoreModel(new PIDModel());
     DNA = loadScoreMatrix("scoreModel/dna.scm");
     registerScoreModel(new FeatureDistanceModel());
     registerScoreModel(new PIDDistanceModel());
index c4c3edb..d70516c 100644 (file)
@@ -47,7 +47,7 @@ public class ScoreModelsTest
     assertTrue(sm instanceof SimilarityScoreModelI);
     assertTrue(sm instanceof PairwiseScoreModelI);
     assertFalse(sm instanceof DistanceScoreModelI);
-    assertEquals(sm.getName(), "Identity (SeqSpace)");
+    assertEquals(sm.getName(), "% Identity (PID)");
     assertEquals(((PairwiseScoreModelI) sm).getPairwiseScore('R', 'C'), 0f);
     assertEquals(((PairwiseScoreModelI) sm).getPairwiseScore('R', 'r'), 1f);