long barID;
- SequenceI hmmSeq;
-
List<ArgumentI> params;
File hmmTemp = null;
hmm = af.getSelectedHMM();
}
- hmmSeq = af.getSelectedHMMSequence();
+ SequenceI hmmSeq = af.getSelectedHMMSequence();
barID = System.currentTimeMillis();
af.setProgressBar(MessageManager.getString("status.running_hmmsearch"),
barID);
}
try
{
- importData();
+ importData(hmmSeq);
} catch (IOException | InterruptedException e)
{
// TODO Auto-generated catch block
{
AlignmentI alignment = af.getViewport().getAlignment();
AlignmentI copy = new Alignment(alignment);
- copy.getHMMConsensusSequences(true);
+ List<SequenceI> hmms = copy.getHMMConsensusSequences();
+ for (SequenceI seq : hmms)
+ {
+ copy.deleteSequence(seq);
+ }
StockholmFile stoFile = new StockholmFile(copy);
stoFile.setSeqs(copy.getSequencesArray());
String alignmentString = stoFile.print();
/**
* Imports the data from the temporary file to which the output of hmmsearch
* is directed.
+ *
+ * @param hmmSeq
*/
- private void importData() throws IOException, InterruptedException
+ private void importData(SequenceI hmmSeq)
+ throws IOException, InterruptedException
{
BufferedReader br = new BufferedReader(
new FileReader(inputAlignmentTemp));