Sha256: 2f264a8aef2cdb5717b92a994f92fee65147dca0bedf27c37b868e11092887f7

Contents?: true

Size: 603 Bytes

Versions: 1

Compression:

Stored size: 603 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(' ')
      exec cmd
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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