class Qu::Seqcluster::Runner
Attributes
opts[R]
Public Class Methods
new(opts)
click to toggle source
# File lib/qu/seqcluster/runner.rb, line 8 def initialize(opts) @opts = opts end
Public Instance Methods
output(groups)
click to toggle source
# File lib/qu/seqcluster/runner.rb, line 17 def output(groups) @opts.out.puts "Cluster count: #{groups.size}" groups.each_with_index do |group, group_index| @opts.out.puts "Cluster #{group_index + 1}: #{group[0].entry_id}" group[1..-1].each do |record, similarity, strand| @opts.out.puts "\tMember: #{record.entry_id} [#{strand}/#{similarity.round(2)}]" end end end
run()
click to toggle source
# File lib/qu/seqcluster/runner.rb, line 12 def run groups = Cluster.new(@opts).find_cluster output(groups) end