+ * Quickly check if the given sequence is referred to in the search results
+ *
+ * @param sequence
+ * (specific alignment sequence or a dataset sequence)
+ * @return true if the results involve sequence
+ */
+ public boolean involvesSequence(SequenceI sequence)
+ {
+ if (matches == null || matches.length == 0)
+ {
+ return false;
+ }
+ SequenceI ds = sequence.getDatasetSequence();
+ for (int m = 0; m < matches.length; m++)
+ {
+ if (matches[m].sequence != null
+ && (matches[m].sequence == sequence || matches[m].sequence == ds))
+ {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ /**