}
if (hmmerStatus)
{
- String ver = getHMMERVersion();
- Cache.setProperty("HMMER_VERSION", ver);
+ // String ver = getHMMERVersion();
+ Cache.setProperty("HMMER_VERSION", "3.1b2");
}
return false;
}
- File hmmbuild = new File(path + "/binaries/hmmbuild.exe");
+ File hmmbuild = new File(path + "/binaries/hmmbuild");
{
if (!hmmbuild.canExecute())
{
}
}
- File hmmalign = new File(path + "/binaries/hmmalign.exe");
+ File hmmalign = new File(path + "/binaries/hmmalign");
{
if (!hmmalign.canExecute())
{
}
}
- File hmmsearch = new File(path + "/binaries/hmmsearch.exe");
+ File hmmsearch = new File(path + "/binaries/hmmsearch");
{
if (!hmmsearch.canExecute())
{
private String getHMMERVersion()
{
- File file = new File(hmmerPath.getText() + "/release-notes.txt");
+ File file = new File(hmmerPath.getText() + "/release-notes");
Scanner scanner = null;
try
{
private boolean runCommand() throws IOException, InterruptedException
{
- File file = new File(cmds.HMMERFOLDER + "/binaries/hmmalign.exe");
+ File file = new File(cmds.HMMERFOLDER + "/binaries/hmmalign");
if (!file.canExecute())
{
return false;
import jalview.gui.Preferences;
import jalview.io.DataSourceType;
import jalview.io.FileFormat;
+import jalview.io.FileLoader;
import jalview.util.MessageManager;
import java.io.File;
private boolean runCommand() throws IOException, InterruptedException
{
- File file = new File(cmds.HMMERFOLDER + "/binaries/hmmbuild.exe");
+ File file = new File(cmds.HMMERFOLDER + "/binaries/hmmbuild");
if (!file.canExecute())
{
return false;
private void importData() throws IOException, InterruptedException
{
cmds.addHMMConsensusSequences(af);
- af.loadJalviewDataFile(hmmTemp.getAbsolutePath(), DataSourceType.FILE,
- FileFormat.HMMER3, null);
+ FileLoader loader = new FileLoader();
+ loader.LoadFileOntoAlignmentWaitTillLoaded(af.getViewport(),
+ hmmTemp.getAbsolutePath(), DataSourceType.FILE,
+ FileFormat.HMMER3);
hmmTemp.delete();
stoTemp.delete();
}
import jalview.datamodel.AlignmentI;
import jalview.datamodel.HiddenColumns;
import jalview.datamodel.PDBEntry;
+import jalview.datamodel.Profile;
+import jalview.datamodel.Profiles;
import jalview.datamodel.SequenceGroup;
import jalview.datamodel.SequenceI;
import jalview.gui.AlignFrame;
return alignFrame;
}
+ public void LoadFileOntoAlignmentWaitTillLoaded(AlignViewport viewport,
+ String file, DataSourceType sourceType, FileFormatI format)
+ {
+ this.viewport = viewport;
+ this.file = file;
+ this.protocol = sourceType;
+ this.format = format;
+ _LoadAlignmentFileWaitTillLoaded();
+ }
+
+ protected void _LoadAlignmentFileWaitTillLoaded()
+ {
+ Thread loader = new Thread(this);
+ loader.start();
+
+ while (loader.isAlive())
+ {
+ try
+ {
+ Thread.sleep(500);
+ } catch (Exception ex)
+ {
+ }
+ }
+ }
+
public void updateRecentlyOpened()
{
Vector recent = new Vector();
}
else
{
- for (int i = 0; i < alignment.getAbsoluteHeight(); i++)
- {
- if (!alignment.getSequenceAt(i).isHMMConsensusSequence())
- {
- alignment.getSequences().add(i, seq);
- break;
- }
- }
+ alignment.insertSequenceAt(0, seq);
}
- viewport.setAlignment(alignment);
viewport.initInformation();
+ viewport.setSequenceInformationHash(
+ new Profiles(new Profile[1]), 0);
viewport.updateInformation(viewport.getAlignPanel());
viewport.getAlignPanel().adjustAnnotationHeight();
viewport.updateSequenceIdColours();
viewport.getAlignPanel().alignFrame
.setSelectedHMM(seq.getHMM());
}
- viewport.getAlignPanel().repaint();
viewport.alignmentChanged(viewport.getAlignPanel());
-
}
}
else