- matches unless block_given?
+ return matches.empty? ? nil : matches unless block_given?
@length = length
@match = match
end
@length = length
@match = match
end
+
+ def to_s
+ "#{pos}:#{length}:#{match}"
+ end
require 'maasha/patternmatcher'
require 'maasha/bits'
require 'maasha/patternmatcher'
require 'maasha/bits'
+require 'maasha/backtrack'
#require 'maasha/patscan'
# Residue alphabets
#require 'maasha/patscan'
# Residue alphabets
class Seq
#include Patscan
include PatternMatcher
class Seq
#include Patscan
include PatternMatcher
attr_accessor :seq_name, :seq, :type, :qual
attr_accessor :seq_name, :seq, :type, :qual