warn.no_selected_hmm = Please select a hidden Markov model sequence.
label.select_hmm = Select HMM
warn.no_sequence_data = No sequence data found.
+label.no_sequences_found = No matching sequences were found.
label.hmmer = HMMER
label.trim_termini = Trim Non-Matching Termini
label.trim_termini_desc = If true, non-matching regions on either end of the resulting alignment are removed.
import jalview.bin.Cache;
import jalview.datamodel.Alignment;
-import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.HiddenMarkovModel;
import jalview.datamodel.SequenceI;
import jalview.ws.params.ArgumentI;
import jalview.ws.params.simple.BooleanOption;
+import java.io.BufferedReader;
import java.io.File;
+import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
*/
private void importData() throws IOException, InterruptedException
{
+ BufferedReader br = new BufferedReader(
+ new FileReader(inputAlignmentTemp));
+ if (br.readLine() == null)
+ {
+ JOptionPane.showMessageDialog(af,
+ MessageManager.getString("label.no_sequences_found"));
+ return;
+ }
StockholmFile file = new StockholmFile(new FileParse(
inputAlignmentTemp.getAbsolutePath(), DataSourceType.FILE));
seqs = file.getSeqsAsArray();
{
hmmAndSeqs = new SequenceI[seqs.length + 1];
}
-
- AlignmentAnnotation[] list = hmmSeq.getAnnotation();
- for (AlignmentAnnotation annot : list)
- {
- if ("HMM".equals(annot.getCalcId()))
- {
- hmmSeq.removeAlignmentAnnotation(annot);
- }
- }
- hmmSeq.setHasInfo(false);
hmmAndSeqs[0] = hmmSeq;
if (numberOfSequences != null && seqs.length > numberOfSequences)