import jalview.hmmer.HMMERParamStore;
import jalview.hmmer.HMMERPreset;
import jalview.hmmer.HMMSearchThread;
+import jalview.hmmer.HmmerCommand;
import jalview.io.AlignmentProperties;
import jalview.io.AnnotationFile;
import jalview.io.BioJsHTMLOutput;
}
});
buildColourMenu();
- buildHMMERMenu();
if (Desktop.desktop != null)
{
}
/**
- * Adds all menu items to the HMMER menu
- */
- private void buildHMMERMenu()
- {
- hmmerMenu.removeAll();
-
- hmmerMenu.add(hmmAlign);
- hmmerMenu.add(hmmBuild);
- hmmerMenu.add(hmmSearch);
- }
-
- /**
* Change the filename and format for the alignment, and enable the 'reload'
* button functionality.
*
}
@Override
- public void hmmBuildSettings_actionPerformed(ActionEvent e)
- throws IOException, InterruptedException
+ public void hmmBuildSettings_actionPerformed()
{
if (!(alignmentIsSufficient(1)))
{
}
@Override
- public void hmmAlignSettings_actionPerformed(ActionEvent e)
- throws IOException, InterruptedException
+ public void hmmAlignSettings_actionPerformed()
{
if (!(checkForHMM() && alignmentIsSufficient(2)))
{
}
@Override
- public void hmmSearchSettings_actionPerformed(ActionEvent e)
+ public void hmmSearchSettings_actionPerformed()
{
if (!checkForHMM())
{
}
@Override
- public void hmmBuildRun_actionPerformed(ActionEvent e)
- throws IOException, InterruptedException
+ public void hmmBuildRun_actionPerformed()
{
if (!alignmentIsSufficient(1))
{
}
new Thread(new HMMBuildThread(this, null))
.start();
- alignPanel.repaint();
-
}
@Override
- public void hmmAlignRun_actionPerformed(ActionEvent e)
- throws IOException, InterruptedException
+ public void hmmAlignRun_actionPerformed()
{
if (!(checkForHMM() && alignmentIsSufficient(2)))
{
}
new Thread(new HMMAlignThread(this, true, null))
.start();
- alignPanel.repaint();
}
@Override
- public void hmmSearchRun_actionPerformed(ActionEvent e)
+ public void hmmSearchRun_actionPerformed()
{
if (!checkForHMM())
{
}
new Thread(new HMMSearchThread(this, true, null))
.start();
- alignPanel.repaint();
}
/**
}
@Override
- public void addDatabase_actionPerformed(ActionEvent e) throws IOException
+ public void addDatabase_actionPerformed() throws IOException
{
if (Cache.getProperty(Preferences.HMMSEARCH_DB_PATHS) == null)
{
.getProperty(Preferences.HMMSEARCH_DB_PATHS);
currentDbPaths += " " + path;
- String fileName = StringUtils.getLastToken(path, new String("/"));
+ String fileName = StringUtils.getLastToken(path, File.separator);
Scanner scanner = new Scanner(fileName).useDelimiter(".");
String name = scanner.next();
scanner.close();
/**
* Sets the status of the HMMER menu
- *
- * @param status
*/
- public void updateHMMERStatus(boolean status)
+ public void updateHMMERStatus()
{
- hmmerMenu.setEnabled(status);
+ hmmerMenu.setEnabled(HmmerCommand.isHmmerAvailable());
}
/**