Sha256: f71e4bbeb820dba11672b7ec08da4720e8ab734c755e18f78e0e7563a7972f2b

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 Bytes

Contents

require 'rubygems'
require 'thor'
require 'dna'
require 'set'
require 'progressbar'
require 'awesome_print'
require 'zlib'

Dir.glob(File.join(File.dirname(__FILE__), 'lederhosen', '*.rb')).each { |f| require f }

class String
  def to_kmers(k)
    return [] if k == 0
    k -= 1
    (0..(self.length-k-1)).collect { |i| self[i..i+k] }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lederhosen-0.1.7 lib/lederhosen.rb