Class: Bio::Pipengine::Step

Inherits:
Object
  • Object
show all
Defined in:
lib/bio/pipengine/step.rb

Overview

Step holds information for a pipeline step groups_def is used to store information on groups definition (i.e. generic cmd lines with placeholders) groups_cmd is used to store the actual command lines for all the samples to be combined in a “groups” step this are generated by combining groups_def information with sample groups information and will be placed where <groups> placeholder is found into the step command lines.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, step_instructions) ⇒ Step

Returns a new instance of Step.



11
12
13
14
# File 'lib/bio/pipengine/step.rb', line 11

def initialize(name,step_instructions)
	@name = name
	parse_yaml(step_instructions)	
end

Instance Attribute Details

#cpusObject

Returns the value of attribute cpus.



10
11
12
# File 'lib/bio/pipengine/step.rb', line 10

def cpus
  @cpus
end

#memObject

Returns the value of attribute mem.



10
11
12
# File 'lib/bio/pipengine/step.rb', line 10

def mem
  @mem
end

#multi_cmdObject

Returns the value of attribute multi_cmd.



10
11
12
# File 'lib/bio/pipengine/step.rb', line 10

def multi_cmd
  @multi_cmd
end

#multi_defObject

Returns the value of attribute multi_def.



10
11
12
# File 'lib/bio/pipengine/step.rb', line 10

def multi_def
  @multi_def
end

#nameObject

Returns the value of attribute name.



10
11
12
# File 'lib/bio/pipengine/step.rb', line 10

def name
  @name
end

#nodesObject

Returns the value of attribute nodes.



10
11
12
# File 'lib/bio/pipengine/step.rb', line 10

def nodes
  @nodes
end

#preObject

Returns the value of attribute pre.



10
11
12
# File 'lib/bio/pipengine/step.rb', line 10

def pre
  @pre
end

#runObject

Returns the value of attribute run.



10
11
12
# File 'lib/bio/pipengine/step.rb', line 10

def run
  @run
end

Instance Method Details

#has_prerequisite?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/bio/pipengine/step.rb', line 20

def has_prerequisite?
	return (self.pre.nil?) ? false : true
end

#is_multi?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/bio/pipengine/step.rb', line 16

def is_multi?
	return (self.multi_def.nil?) ? false : true
end