assertTrue(sm instanceof SimilarityScoreModel);
assertTrue(sm instanceof PairwiseScoreModelI);
assertFalse(sm instanceof DistanceScoreModel);
+ assertEquals(sm.getName(), "Mat3di");
+ assertEquals(((PairwiseScoreModelI) sm).getPairwiseScore('R', 'C'), -1f);
+ assertEquals(((PairwiseScoreModelI) sm).getPairwiseScore('R', 'r'), 6f);
+
+ sm = models.next();
+ assertTrue(sm instanceof SimilarityScoreModel);
+ assertTrue(sm instanceof PairwiseScoreModelI);
+ assertFalse(sm instanceof DistanceScoreModel);
assertEquals(sm.getName(), "PID");
assertEquals(((PairwiseScoreModelI) sm).getPairwiseScore('R', 'C'), 0f);
assertEquals(((PairwiseScoreModelI) sm).getPairwiseScore('R', 'r'), 1f);
*/
List<ScoreModelI> filtered = CalculationChooser
.getApplicableScoreModels(false, true);
- assertEquals(filtered.size(), 4);
+ assertEquals(filtered.size(), 5);
assertSame(filtered.get(0), blosum62);
assertSame(filtered.get(1), pam250);
- assertEquals(filtered.get(2).getName(), "PID");
- assertEquals(filtered.get(3).getName(), "Sequence Feature Similarity");
+ assertEquals(filtered.get(2).getName(), "Mat3di");
+ assertEquals(filtered.get(4).getName(), "Sequence Feature Similarity");
/*
* peptide models for Tree are the same
*/
filtered = CalculationChooser.getApplicableScoreModels(false, false);
- assertEquals(filtered.size(), 4);
+ assertEquals(filtered.size(), 5);
assertSame(filtered.get(0), blosum62);
assertSame(filtered.get(1), pam250);
- assertEquals(filtered.get(2).getName(), "PID");
- assertEquals(filtered.get(3).getName(), "Sequence Feature Similarity");
+ assertEquals(filtered.get(2).getName(), "Mat3di");
+ assertEquals(filtered.get(3).getName(), "PID");
+ assertEquals(filtered.get(4).getName(), "Sequence Feature Similarity");
/*
* nucleotide models for PCA