Sha256: b7bf2978d0a6f0b47839247e03c273a673b1a2e805c57510f29e5ccef86b65da

Contents?: true

Size: 619 Bytes

Versions: 1

Compression:

Stored size: 619 Bytes

Contents

##
# FINALLY, CLUSTER!
#

module Lederhosen
  class CLI

    desc "cluster",
         "cluster a fasta file using UCLUST"

    method_option :input,    :type => :string,  :required => true
    method_option :output,   :type => :string,  :required => true
    method_option :identity, :type => :numeric, :required => true

    def cluster
      identity = options[:identity]
      output = options[:output]
      input = options[:input]

      cmd = [
        'uclust',
        "--input #{input}",
        "--uc #{output}",
        "--id #{identity}",
      ].join(' ')

      @shell.mute { run cmd }
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lederhosen-0.1.8 lib/lederhosen/tasks/cluster.rb