public class InformationThread extends AlignCalcWorker
{
-
+ /**
+ * Constructor for information thread.
+ *
+ * @param alignViewport
+ * @param alignPanel
+ */
public InformationThread(AlignViewportI alignViewport,
AlignmentViewPanel alignPanel)
{
/**
- * @param alignment
- */
+ * Computes the profiles from a HMM for an alignment.
+ *
+ * @param alignment
+ */
protected void computeInformation(AlignmentI alignment)
{
for (SequenceI seq : hmmSeqs)
{
HiddenMarkovModel hmm = seq.getHMM();
- ProfilesI hinformation = AAFrequency.calculateInformation(hmm, width,
+ ProfilesI hinformation = AAFrequency.calculateHMMProfiles(hmm, width,
0, width, true, alignViewport.isIgnoreBelowBackground());
alignViewport.setSequenceInformationHash(hinformation, index);
// setColourSchemeInformation(hinformation);
}
/**
- * @return
- */
+ * gets the sequences on the alignment on the viewport.
+ *
+ * @return
+ */
protected SequenceI[] getSequences()
{
return alignViewport.getAlignment().getSequencesArray();
}
- /**
- * @param hinformation
- */
protected void setColourSchemeInformation(ProfilesI information)
{
ResidueShaderI cs = alignViewport.getResidueShading();
updateResultAnnotation(false);
}
-
+ /**
+ * Derives the information content for an information annotation.
+ *
+ * @param immediate
+ */
public void updateResultAnnotation(boolean immediate)
{
List<AlignmentAnnotation> annots = getInformationAnnotations();