From: martinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Date: Tue, 20 Dec 2011 14:55:52 +0000 (+0000)
Subject: fixed --rev swith in usearch.rb
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8fc4a8f9bcb16397d40217074b85f16233fe036b;p=biopieces.git

fixed --rev swith in usearch.rb

git-svn-id: http://biopieces.googlecode.com/svn/trunk@1714 74ccb610-7750-0410-82ae-013aeee3265d
---

diff --git a/code_ruby/lib/maasha/usearch.rb b/code_ruby/lib/maasha/usearch.rb
index 75da3f7..129cfce 100644
--- a/code_ruby/lib/maasha/usearch.rb
+++ b/code_ruby/lib/maasha/usearch.rb
@@ -67,6 +67,7 @@ class Usearch
 	# Method to execute clustering de novo.
   def cluster
     @command << "usearch --cluster #{@infile} --uc #{@outfile} --id #{@options[:identity]}"
+    @command << "--rev" if @options[:comp]
 
 		execute
   end
@@ -138,7 +139,6 @@ class Usearch
 	# The command is composed of bits from the @command variable.
 	def execute
 		@command.unshift "nice -n 19"
-    @command << "--rev" if @options[:comp]
 		@command << "> /dev/null 2>&1" unless @options[:verbose]
 		command = @command.join(" ")
     system(command)