X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fworkers%2FInformationThread.java;h=2c92879a2549d06825585ac6b51801b50a3d48c9;hb=0d8da9b627e1f4233963de2cd0a1d9c25b0871d2;hp=67dd838d1fb7fe3059c89152e0eb9be85fa77220;hpb=b86014d3039eeb4a877d0e9e65bd4409065843f0;p=jalview.git diff --git a/src/jalview/workers/InformationThread.java b/src/jalview/workers/InformationThread.java index 67dd838..2c92879 100644 --- a/src/jalview/workers/InformationThread.java +++ b/src/jalview/workers/InformationThread.java @@ -15,7 +15,12 @@ import java.util.List; public class InformationThread extends AlignCalcWorker { - + /** + * Constructor for information thread. + * + * @param alignViewport + * @param alignPanel + */ public InformationThread(AlignViewportI alignViewport, AlignmentViewPanel alignPanel) { @@ -110,8 +115,10 @@ public class InformationThread extends AlignCalcWorker /** - * @param alignment - */ + * Computes the profiles from a HMM for an alignment. + * + * @param alignment + */ protected void computeInformation(AlignmentI alignment) { @@ -121,7 +128,7 @@ public class InformationThread extends AlignCalcWorker 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); @@ -130,16 +137,15 @@ public class InformationThread extends AlignCalcWorker } /** - * @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(); @@ -180,7 +186,11 @@ public class InformationThread extends AlignCalcWorker updateResultAnnotation(false); } - + /** + * Derives the information content for an information annotation. + * + * @param immediate + */ public void updateResultAnnotation(boolean immediate) { List annots = getInformationAnnotations();