Class: Nimbus::Individual

Inherits:
Object
  • Object
show all
Defined in:
lib/nimbus/individual.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Individual) initialize(i, fen, snps = {})



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