]> git.donarmstrong.com Git - biopieces.git/commitdiff
added procedure switch to find_genes
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Tue, 10 May 2011 10:27:31 +0000 (10:27 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Tue, 10 May 2011 10:27:31 +0000 (10:27 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1391 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/find_genes
code_ruby/Maasha/lib/prodigal.rb

index 16cba9ba59573c37690b6a5297ce9e160388c67e..f0d64c8365300b3c970dd43fd6f6f7c1ed67f9e1 100755 (executable)
@@ -34,7 +34,8 @@ require 'fasta'
 require 'prodigal'
 
 casts = []
-casts << {:long=>'full', :short=>'f', :type=>'flag', :mandatory=>false, :default=>nil, :allowed=>nil, :disallowed=>nil}
+casts << {:long=>'full', :short=>'f', :type=>'flag',      :mandatory=>false, :default=>nil,      :allowed=>nil,           :disallowed=>nil}
+casts << {:long=>'full', :short=>'p', :type=>'procedure', :mandatory=>true,  :default=>'single', :allowed=>'single,meta', :disallowed=>nil}
 
 bp = Biopieces.new
 
index 1a1fd552af5311caf9f8b3ce1bd0187aa6b81007..9ddbf79f62db23cf5d73f3a867933af48f0bd8e3 100644 (file)
@@ -42,6 +42,7 @@ class Prodigal
     commands = []
     commands << "prodigal"
     commands << "-c" if @options[:full]
+    commands << "-p #{@options[:procedure]}"
     commands << "-i #{@infile}"
     commands << "-o #{@outfile}"