100, 0, 100000));
args.add(new RadioChoiceParameter(
MessageManager.getString(HMMSearch.REPORTING_CUTOFF_KEY), null,
- Arrays.asList(HMMSearch.CUTOFF_NONE, HMMSearch.CUTOFF_EVALUE,
- HMMSearch.CUTOFF_SCORE),
- HMMSearch.CUTOFF_EVALUE));
+ Arrays.asList(MessageManager.getString(HMMSearch.CUTOFF_NONE),
+ MessageManager.getString(HMMSearch.CUTOFF_EVALUE),
+ MessageManager.getString(HMMSearch.CUTOFF_SCORE)),
+ MessageManager.getString(HMMSearch.CUTOFF_EVALUE)));
args.add(new LogarithmicParameter(
MessageManager.getString(HMMSearch.SEQ_EVALUE_KEY),
MessageManager.getString("label.seq_e_value_desc"), false, 1D,
else if (MessageManager.getString(REPORTING_CUTOFF_KEY)
.equals(name))
{
- if (CUTOFF_EVALUE.equals(arg.getValue()))
+ if (MessageManager.getString(CUTOFF_EVALUE)
+ .equals(arg.getValue()))
{
useEvalueCutoff = true;
}
- else if (CUTOFF_SCORE.equals(arg.getValue()))
+ else if (MessageManager.getString(CUTOFF_SCORE)
+ .equals(arg.getValue()))
{
useScoreCutoff = true;
}
}
else if (MessageManager.getString(DATABASE_KEY).equals(name))
{
- dbFound = true;
- dbPath = arg.getValue();
- if (!MessageManager.getString(THIS_ALIGNMENT_KEY)
- .equals(dbPath))
+ databaseFile = new File(arg.getValue());
+ if (!arg.getValue().isEmpty())
{
- int pos = dbPath.lastIndexOf(File.separator);
- databaseName = dbPath.substring(pos + 1);
- databaseFile = new File(dbPath);
+ searchAlignment = false;
}
- searchAlignment = false;
}
else if (MessageManager.getString(RETURN_N_NEW_SEQ).equals(name))
{
AlignmentI copy = new Alignment(al);
deleteHmmSequences(copy);
- sequencesHash = stashSequences(copy.getSequencesArray());
+ if (searchAlignment)
+ {
+ sequencesHash = stashSequences(copy.getSequencesArray());
+ }
exportStockholm(copy.getSequencesArray(), databaseFile, null);
args.add("-A");
args.add(getFilePath(hitsAlignmentFile, true));
- boolean dbFound = false;
- String dbPath = "";
File databaseFile = null;
boolean useEvalueCutoff = false;
}
else if (MessageManager.getString(DATABASE_KEY).equals(name))
{
- dbFound = true;
- dbPath = arg.getValue();
- if (!MessageManager.getString(THIS_ALIGNMENT_KEY).equals(dbPath))
+ databaseFile = new File(arg.getValue());
+ if (!arg.getValue().isEmpty())
{
- int pos = dbPath.lastIndexOf(File.separator);
- databaseName = dbPath.substring(pos + 1);
- databaseFile = new File(dbPath);
+ searchAlignment = false;
}
- searchAlignment = false;
}
}
}
deleteHmmSequences(copy);
- sequencesHash = stashSequences(copy.getSequencesArray());
+ if (searchAlignment)
+ {
+ sequencesHash = stashSequences(copy.getSequencesArray());
+ }
exportStockholm(copy.getSequencesArray(), databaseFile, null);
}