lib/bio/pipengine/job.rb
# take the multi_cmd and perform the subsitutions into the step command lines
take the multi_cmd and perform the subsitutions into the step command lines
take the multi_cmd and perform the subsitutions into the step command lines
def sub_multi(cmd,step)
				cmd = sub_resources_and_cpu(cmd,step)
				if step.multi_cmd.kind_of? Array
					step.multi_cmd.each_with_index do |m,index|
						cmd.gsub!(/<multi#{index+1}>/,m)
					end
				else
					cmd.gsub!(/<multi>/,step.multi_cmd)
				end
				return cmd
			end
def sub_multi ( cmd , step ) cmd = sub_resources_and_cpu ( cmd , step ) if step . multi_cmd . kind_of? Array step . multi_cmd . each_with_index do | m , index | cmd . gsub! ( / <multi #{ index + 1 } > / , m ) end else cmd . gsub! ( / <multi> / , step . multi_cmd ) end return cmd end
take the multi_cmd and perform the subsitutions into the step command lines
take the multi_cmd and perform the subsitutions into the step command lines
cmd
<not_specific>
step
<not_specific>