* outputs
*/
final private PairwiseAlignPanel alignment;
+
+ private boolean cancelled=false;
private MatrixI pairwiseScores;
{
// alignment = new PairwiseAlignPanel(seqs, true, 100, 5);
alignment.calculate(scoreMatrix);
+ if (alignment.isCancelled())
+ {
+ cancel();
+ return;
+ }
float[][] scores = alignment.getAlignmentScores(); // bigger index first
// -- eg scores[14][13]
SequenceI[] iseqs = alignment.getInputSequences();
q.printStackTrace();
}
}
+
+
+
+ public void cancel()
+ {
+ if (alignment!=null)
+ {
+ alignment.cancel();
+ }
+ cancelled=true;
+ }
+
+ public boolean isCancelled()
+ {
+ return cancelled;
+ }
/**
* Returns a PrintStream that wraps (appends its output to) the given