Permalink
Browse files

fixed output folder management

  • Loading branch information...
1 parent f5553a2 commit 8da034df137c9d2784ba2ee1ad8700741ef5992a @fstrozzi committed Sep 24, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/bio/grid/job.rb
View
@@ -18,15 +18,13 @@ def set_commandline(cmd_line,inputs,input1,groups,index)
inputs.each do |input|
commandline.gsub!(/<#{input}>/,groups[input][index].join(self.options[:sep]))
end
- job_output = ""
+ job_output = self.options[:output]+"/#{options[:uuid]}_"+self.options[:name]+"_%03d" % (index+1).to_s + "#{self.options[:parameter_value]}"
if commandline =~/<output>\.(\S+)/
extension = $1
- job_output = self.options[:output]+"/#{options[:uuid]}_"+self.options[:name]+"_%03d" % (index+1).to_s + "#{self.options[:parameter_value]}"
commandline.gsub!(/<output>/,job_output)
job_output << ".#{extension}"
else
self.options[:output_folder] = true
- job_output = self.options[:output]+"/#{options[:uuid]}_"+self.options[:name]
commandline.gsub!(/<output>/,job_output)
end
self.instructions << commandline+"\n"

0 comments on commit 8da034d

Please sign in to comment.