# Method that indexes a sequence within a given interval such that the
# index contains all oligos of a given kmer size and the positions where
# this oligo was located.
- def index_seq(seq, min, max, kmer)
+ def index_seq(seq, min, max, kmer, step = 1)
index_hash = Hash.new { |h, k| h[k] = [] }
pos = min
oligo = seq[pos ... pos + kmer]
index_hash[oligo] << pos
- pos += 1
+ pos += step
end
index_hash