lib/lederhosen/tasks/cluster.rb in lederhosen-1.3.0 vs lib/lederhosen/tasks/cluster.rb in lederhosen-1.3.1
- old
+ new
@@ -4,11 +4,11 @@
desc 'cluster', 'reference-based clustering using usearch'
method_option :input, :type => :string, :required => true
method_option :database, :type => :string, :required => true
- method_option :threads, :type => :numeric, :default => 0
+ method_option :threads, :type => :numeric, :default => false
method_option :identity, :type => :numeric, :required => true
method_option :output, :type => :string, :required => true
method_option :strand, :type => :string, :default => 'plus'
def cluster
@@ -31,11 +31,11 @@
"--uc #{output}",
"--db #{database}",
"--strand #{strand}"
]
- # threads = 0 : use all threads (default)
- if threads != 0
+ # threads = False : use all threads (default)
+ if threads != false
cmd << "--threads #{threads}"
end
cmd = cmd.join(' ')