import jalview.renderer.ResidueShader;
import jalview.renderer.ResidueShaderI;
import jalview.schemes.ColourSchemeI;
+import jalview.util.MessageManager;
import java.awt.Color;
import java.util.ArrayList;
{
getInformation();
}
- information.label = "Information for " + getName();
- information.description = "Percent Identity";
+ information.description = MessageManager
+ .getString("label.information_description");
informationData = cnsns;
// preserve width if already set
int aWidth = (information.annotations != null)
information.annotations = null;
information.annotations = new Annotation[aWidth]; // should be alignment
// width
-
+ information.calcId = "HMM";
AAFrequency.completeInformation(information, cnsns, startRes,
endRes + 1, ignoreBelowBackground, showSequenceLogo, nseq); // TODO:
// setting
information.groupRef = this;
information.label = getName() + "_HMM";
information.description = "Information content, measured in bits";
+ information.calcId = "HMM";
}
return information;
}
import jalview.datamodel.SequenceGroup;
import jalview.datamodel.SequenceI;
import jalview.gui.ColourMenuHelper.ColourChangeListener;
-import jalview.hmmer.HMMAlignThread;
-import jalview.hmmer.HMMBuildThread;
import jalview.io.FileFormatI;
import jalview.io.FileFormats;
import jalview.io.FormatAdapter;
JMenuItem sequenceFeature = new JMenuItem();
- JMenuItem hmmBuildGroup = new JMenuItem();
JMenuItem textColour = new JMenuItem();
}
});
add(selectHMM);
-
- JMenuItem hmmAlign = new JCheckBoxMenuItem();
- hmmAlign.setText(MessageManager.getString("label.hmmalign"));
- hmmAlign.addActionListener(new ActionListener()
- {
-
- @Override
- public void actionPerformed(ActionEvent e)
- {
- hmmAlign_actionPerformed(e);
- }
- });
- add(hmmAlign);
}
+
if (ap.av.getSelectionGroup() != null
&& ap.av.getSelectionGroup().getSize() > 1)
{
sequenceFeature_actionPerformed();
}
});
- hmmBuildGroup.setText(MessageManager.getString("label.group_hmmbuild"));
- hmmBuildGroup.addActionListener(new ActionListener()
- {
- @Override
- public void actionPerformed(ActionEvent e)
- {
- hmmBuildGroup_actionPerformed();
- }
- });
jMenu1.setText(MessageManager.getString("label.group"));
pdbStructureDialog.setText(
MessageManager.getString("label.show_pdbstruct_dialog"));
jMenu1.add(displayNonconserved);
}
- protected void hmmBuildGroup_actionPerformed()
- {
- new Thread(new HMMBuildThread(ap.alignFrame)).start();
- ap.repaint();
-
- }
protected void selectHMM_actionPerformed(ActionEvent e)
{
ap.alignFrame.setSelectedHMMSequence(hmm);
}
- protected void hmmAlign_actionPerformed(ActionEvent e)
- {
- ap.alignFrame.setSelectedHMMSequence(this.sequence);
- new Thread(new HMMAlignThread(ap.alignFrame, true)).start();
- ap.repaint();
- }
-
/**
* Constructs the entries for the colour menu
*/