Class: Bio::Pipengine::Sample
- Inherits:
-
Object
- Object
- Bio::Pipengine::Sample
- Defined in:
- lib/bio/pipengine/sample.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Sample holds all the information on a sample and its original input path (or multiple paths).
Instance Method Summary collapse
- #group ⇒ Object
- #group=(group) ⇒ Object
-
#initialize(name, path_string, group) ⇒ Sample
constructor
A new instance of Sample.
- #name ⇒ Object
- #name=(name) ⇒ Object
- #x_name ⇒ Object
Constructor Details
#initialize(name, path_string, group) ⇒ Sample
Returns a new instance of Sample.
6 7 8 9 10 |
# File 'lib/bio/pipengine/sample.rb', line 6 def initialize(name,path_string,group) @path = path_string.split(",") @name = name @group = group end |
Instance Attribute Details
#path ⇒ Object
Sample holds all the information on a sample and its original input path (or multiple paths)
5 6 7 |
# File 'lib/bio/pipengine/sample.rb', line 5 def path @path end |
Instance Method Details
#group ⇒ Object
20 21 22 |
# File 'lib/bio/pipengine/sample.rb', line 20 def group @group end |
#group=(group) ⇒ Object
16 17 18 |
# File 'lib/bio/pipengine/sample.rb', line 16 def group=(group) @group end |
#name ⇒ Object
28 29 30 |
# File 'lib/bio/pipengine/sample.rb', line 28 def name @name end |
#name=(name) ⇒ Object
12 13 14 |
# File 'lib/bio/pipengine/sample.rb', line 12 def name=(name) @name end |
#x_name ⇒ Object
24 25 26 |
# File 'lib/bio/pipengine/sample.rb', line 24 def x_name "#{@group}/#{@name}" end |