Class: Nimbus::Individual
- Inherits:
-
Object
- Object
- Nimbus::Individual
- Defined in:
- lib/nimbus/individual.rb
Instance Attribute Summary (collapse)
-
- (Object) fenotype
Returns the value of attribute fenotype.
-
- (Object) id
Returns the value of attribute id.
-
- (Object) prediction
Returns the value of attribute prediction.
-
- (Object) snp_list
Returns the value of attribute snp_list.
Instance Method Summary (collapse)
-
- (Individual) initialize(i, fen, snps = {})
constructor
A new instance of Individual.
Constructor Details
- (Individual) initialize(i, fen, snps = {})
A new instance of Individual
6 7 8 9 10 |
# File 'lib/nimbus/individual.rb', line 6 def initialize(i, fen, snps={}) self.id = i self.fenotype = fen self.snp_list = snps end |
Instance Attribute Details
- (Object) fenotype
Returns the value of attribute fenotype
4 5 6 |
# File 'lib/nimbus/individual.rb', line 4 def fenotype @fenotype end |
- (Object) id
Returns the value of attribute id
4 5 6 |
# File 'lib/nimbus/individual.rb', line 4 def id @id end |
- (Object) prediction
Returns the value of attribute prediction
4 5 6 |
# File 'lib/nimbus/individual.rb', line 4 def prediction @prediction end |
- (Object) snp_list
Returns the value of attribute snp_list
4 5 6 |
# File 'lib/nimbus/individual.rb', line 4 def snp_list @snp_list end |