import jalview.datamodel.AlignmentView;
import jalview.datamodel.ColumnSelection;
import jalview.datamodel.HiddenColumns;
+import jalview.datamodel.HiddenMarkovModel;
import jalview.datamodel.HiddenSequences;
import jalview.datamodel.PDBEntry;
import jalview.datamodel.SeqCigar;
}
else if (FileFormat.HMMER3.equals(format))
{
- 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;
}
else if (FileFormat.Jnet.equals(format))
{