private void runCommand() throws IOException, InterruptedException
{
- final String command = cmds.HMMERFOLDER + cmds.HMMBUILD + cmds.NAME
- + af.getName() + cmds.SPACE + hmmTemp.getAbsolutePath()
+ String command = cmds.HMMERFOLDER + cmds.HMMBUILD + cmds.NAME
+ + af.getName() + cmds.SPACE;
+ if (!alignment.isNucleotide())
+ {
+ command += cmds.FORCEAMINO; // TODO check for rna
+ }
+ else
+ {
+ command += cmds.FORCEDNA;
+ }
+
+ command += hmmTemp.getAbsolutePath()
+ cmds.SPACE + stoTemp.getAbsolutePath() + cmds.SPACE;
cmds.runCommand(command);
}
public String JALVIEWDIRECTORY = System.getProperty("user.dir")
+ "/";
- public String HMMALIGN = "/hmmalign ";
+ public final String HMMALIGN = "/hmmalign ";
- public String HMMBUILD = "/hmmbuild ";
+ public final String HMMBUILD = "/hmmbuild ";
- public String HMMSEARCH = "/hmmsearch ";
+ public final String HMMSEARCH = "/hmmsearch ";
public String HMMBUFFER;
public String OUTPUTALIGNMENT;
- public String NAME = "-n ";
+ public final String NAME = "-n ";
- public String SPACE = " ";
+ public final String SPACE = " ";
- public String ALLCOL = "--allcol ";
+ public final String ALLCOL = "--allcol ";
- public String TRIM = "--trim ";
+ public final String TRIM = "--trim ";
+
+ public final String FORCEAMINO = "--amino ";
+
+ public final String FORCEDNA = "--dna ";
+
+ public final String FORCERNA = "--rna ";
Hashtable hash = new Hashtable();