import java.util.Hashtable;
import java.util.List;
+/**
+ * Contains multiple commands and methods frequently used to run hmmbuild,
+ * hmmalign and hmmsearch
+ *
+ * @author TZVanaalten
+ *
+ */
public class HMMERCommands
{
// Path of hmmer binaries directory
public final String HMMSEARCH = "/hmmsearch ";
- public String HMMBUFFER;
-
- public String ALIGNMENTBUFFER;
-
- public String ALIGNMENTINPUT;
-
public String OUTPUTALIGNMENT;
public final String NAME = "-n ";
List<SequenceI> hmmSeqs;
+ /**
+ * Uniquifies the sequences when exporting and stores their details in a
+ * hashtable.
+ *
+ * @param seqs
+ */
public void uniquifySequences(SequenceI[] seqs)
{
hash = jalview.analysis.SeqsetUtils.uniquify(seqs, true);
}
+ /**
+ * Recover the sequence data lost by uniquifying.
+ *
+ * @param seqs
+ */
public void recoverSequenceNames(SequenceI[] seqs)
{
jalview.analysis.SeqsetUtils.deuniquify(hash, seqs);
}
/**
- * Runs a command in the terminal.
+ * Runs a command in the command line.
*
* @param command
* @throws IOException
}
/**
- * Exports an alignment to the buffer location in Jalview.
+ * Exports an alignment and/or HMM to the specified file.
*
* @param alignment
* @throws IOException
}
}
+ /**
+ * Adds any HMM sequences removed before submitting the alignment as a job
+ * back into the alignment.
+ *
+ * @param af
+ */
public void addHMMConsensusSequences(AlignFrame af)
{
AlignmentI al = af.getViewport().getAlignment();
af.buildSortByAnnotationScoresMenu();
}
+ /**
+ * Returns the list of HMM sequences removed
+ *
+ * @return
+ */
public List<SequenceI> getHmmSeqs()
{
return hmmSeqs;
}
+ /**
+ * Sets the list of removed HMM sequences
+ *
+ * @param hmmSeqs
+ */
public void setHmmSeqs(List<SequenceI> hmmSeqs)
{
this.hmmSeqs = hmmSeqs;