Exemplo n.º 1
0
 public SeqSymmetry optimizeRequest(final SeqSpan span) {
   final MutableSeqSymmetry query_sym = new SimpleMutableSeqSymmetry();
   query_sym.addSpan(span);
   SeqSymmetry optimized_sym = SeqUtils.exclusive(query_sym, this.requestSym, span.getBioSeq());
   optimized_sym = SeqUtils.exclusive(optimized_sym, this.currentRequestSym, span.getBioSeq());
   if (SeqUtils.hasSpan(optimized_sym)) {
     return optimized_sym;
   }
   return null;
 }
Exemplo n.º 2
0
 public boolean isLoaded(final SeqSpan span) {
   final MutableSeqSymmetry query_sym = new SimpleMutableSeqSymmetry();
   query_sym.addSpan(span);
   final SeqSymmetry optimized_sym =
       SeqUtils.exclusive(query_sym, this.requestSym, span.getBioSeq());
   return !SeqUtils.hasSpan(optimized_sym);
 }