Sha256: a508471acfccc33c969c9284273c8ae728fe2e68ded3d4e9ec9e6be2e70461a5

Contents?: true

Size: 641 Bytes

Versions: 6

Compression:

Stored size: 641 Bytes

Contents

##
# FINALLY, CLUSTER!
#

module Lederhosen
  class CLI

    desc "cluster fasta file",
         "--input=sorted.fasta --identity=0.80 --output=clusters.uc"

    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

6 entries across 6 versions & 1 rubygems

Version Path
lederhosen-0.1.2 lib/lederhosen/tasks/cluster.rb
lederhosen-0.1.1 lib/lederhosen/tasks/cluster.rb
lederhosen-0.1.0 lib/lederhosen/tasks/cluster.rb
lederhosen-0.0.11 lib/lederhosen/tasks/cluster.rb
lederhosen-0.0.10 lib/lederhosen/tasks/cluster.rb
lederhosen-0.0.9 lib/lederhosen/tasks/cluster.rb