}
+ /**
+ * Builds a HMM from an alignment, then imports and adds it to the alignment.
+ */
@Override
public void run()
{
-
+ /**
+ * Executes the hmmbuild command in the command line.
+ *
+ * @return
+ * @throws IOException
+ * @throws InterruptedException
+ */
private boolean runCommand() throws IOException, InterruptedException
{
File file = new File(cmds.HMMERFOLDER + "/hmmbuild");
String name = null;
if (af != null)
{
- name = af.getName();
+ name = af.getTitle();
}
if (name == null)
{
return cmds.runCommand(command);
}
+ /**
+ * Imports the .hmm file produced by hmmbuild.
+ *
+ * @throws IOException
+ * @throws InterruptedException
+ */
private void importData() throws IOException, InterruptedException
{
if (af != null)
stoTemp.delete();
}
+ /**
+ * Runs hmmbuild, and waits for the results to be imported before continuing
+ */
public void hmmbuildWaitTillComplete()
{
Thread loader = new Thread(this);