package jalview.schemes;
-import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.AnnotatedCollectionI;
import jalview.datamodel.HiddenMarkovModel;
import jalview.datamodel.SequenceCollectionI;
public void alignmentChanged(AnnotatedCollectionI collection,
Map<SequenceI, SequenceCollectionI> hiddenReps)
{
- AlignmentAnnotation[] annArr = collection.getAlignmentAnnotation();
- for (AlignmentAnnotation ann : annArr)
- {
- if (ann.label.indexOf("Information Content") > -1)
- {
- hmm = ann.getHMM();
- }
- }
-
+ SequenceI seq = collection.getSequences().get(0);
+ hmm = seq.getHMM();
}
+
+
@Override
public ColourSchemeI getInstance(AnnotatedCollectionI sg,
Map<SequenceI, SequenceCollectionI> hiddenRepSequences)
{
HiddenMarkovModel markov = null;
- AlignmentAnnotation[] annArr = sg.getAlignmentAnnotation();
- for (AlignmentAnnotation ann : annArr)
- {
- if (ann.label.indexOf("Information Content") > -1)
- {
- markov = ann.getHMM();
- }
- }
-
-
-
-
-
+ SequenceI seq = sg.getSequences().get(0);
+ markov = seq.getHMM();
HMMERColourScheme colour = new HMMERColourScheme(markov);
return colour;