Sha256: 41a1704eec7eba6ad06fc3e3fc8d91fafcbb7f68952e0604faa561462225d2f9

Contents?: true

Size: 334 Bytes

Versions: 7

Compression:

Stored size: 334 Bytes

Contents

require_relative 'api_runner'
module Unipept::Commands
  class Taxa2lca < ApiRunner
    def batch_iterator
      SimpleBatchIterator.new
    end

    def default_batch_size
      fail 'NOT NEEDED FOR TAXA2LCA'
    end
  end

  class SimpleBatchIterator
    def iterate(input, &block)
      block.call(input.to_a, 0)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
unipept-1.1.2 lib/commands/unipept/taxa2lca.rb
unipept-1.1.1 lib/commands/unipept/taxa2lca.rb
unipept-1.1.0 lib/commands/unipept/taxa2lca.rb
unipept-1.0.1 lib/commands/unipept/taxa2lca.rb
unipept-1.0.0 lib/commands/unipept/taxa2lca.rb
unipept-0.10.0 lib/commands/unipept/taxa2lca.rb
unipept-0.9.0 lib/commands/unipept/taxa2lca.rb