- HMMFile hmm = new HMMFile(new FileParse(file, sourceType));
- hmm.parse();
-
- getViewport().getAlignment().setHMM(hmm.getHMM());
-
-
-
-
-
+ HMMFile hmmFile = new HMMFile(new FileParse(file, sourceType));
+ hmmFile.parse();
+ HiddenMarkovModel hmm = hmmFile.getHMM();
+ AlignmentAnnotation annotation = hmm.createAnnotation(
+ getViewport().getAlignment().getWidth());
+ getViewport().getAlignment().addAnnotation(annotation);
+ annotation.setHMM(hmm);
+ isAnnotation = true;