rcs.setThreshold(0, true);
assertTrue(rcs.aboveThreshold('a', 0));
assertTrue(rcs.aboveThreshold('S', 0));
- assertFalse(rcs.aboveThreshold('W', 0));
+ assertTrue(rcs.aboveThreshold('W', 0));
assertTrue(rcs.aboveThreshold('R', 1));
- assertFalse(rcs.aboveThreshold('W', 2));
+ assertTrue(rcs.aboveThreshold('W', 2));
assertTrue(rcs.aboveThreshold('t', 3));
- assertFalse(rcs.aboveThreshold('Q', 3));
+ assertTrue(rcs.aboveThreshold('Q', 3));
/*
* with threshold, include gaps
.isApplicableTo(peptide));
assertFalse(new ClustalxColourScheme(nucleotide, null)
.isApplicableTo(nucleotide));
- // Blosum requires presence of Conservation annotation
- assertFalse(new Blosum62ColourScheme().isApplicableTo(peptide));
+ assertTrue(new Blosum62ColourScheme().isApplicableTo(peptide));
assertFalse(new Blosum62ColourScheme().isApplicableTo(nucleotide));
assertTrue(new BuriedColourScheme().isApplicableTo(peptide));
assertFalse(new BuriedColourScheme().isApplicableTo(nucleotide));
assertTrue(new ZappoColourScheme().isApplicableTo(peptide));
assertFalse(new ZappoColourScheme().isApplicableTo(nucleotide));
- peptide.addAnnotation(new AlignmentAnnotation("Conservation",
- "Conservation", new Annotation[1], 0f, 11f,
- AlignmentAnnotation.BAR_GRAPH));
- assertTrue(new Blosum62ColourScheme().isApplicableTo(peptide));
-
/*
* nucleotide-specific colour schemes
*/