]> git.donarmstrong.com Git - biopieces.git/commitdiff
fixed --rev swith in usearch.rb
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Tue, 20 Dec 2011 14:55:52 +0000 (14:55 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Tue, 20 Dec 2011 14:55:52 +0000 (14:55 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1714 74ccb610-7750-0410-82ae-013aeee3265d

code_ruby/lib/maasha/usearch.rb

index 75da3f7ac6f0dd58c88f7b4a05e035b1e48a75ab..129cfced4fafcf8ebf7c704fc399d14b5196211f 100644 (file)
@@ -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)