Class: FluidigmFile::FluidigmWell

Inherits:
Object
  • Object
show all
Defined in:
app/models/fluidigm_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(description) ⇒ FluidigmWell

Returns a new instance of FluidigmWell.



61
62
63
# File 'app/models/fluidigm_file.rb', line 61

def initialize(description)
  @description = description
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



59
60
61
# File 'app/models/fluidigm_file.rb', line 59

def description
  @description
end

Instance Method Details

#add_assay(assay, marker) ⇒ Object



69
70
71
# File 'app/models/fluidigm_file.rb', line 69

def add_assay(assay, marker)
  marker_array << Assay.new(assay, marker)
end

#countObject



73
74
75
# File 'app/models/fluidigm_file.rb', line 73

def count
  marker_array.count(&:pass?)
end

#gender_markersObject



65
66
67
# File 'app/models/fluidigm_file.rb', line 65

def gender_markers
  marker_array.select(&:gender_marker?).map(&:gender)
end