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


78
79
80
# File 'app/models/fluidigm_file.rb', line 78

def initialize(description)
  @description = description
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description


76
77
78
# File 'app/models/fluidigm_file.rb', line 76

def description
  @description
end

Instance Method Details

#add_assay(assay, marker) ⇒ Object


86
87
88
# File 'app/models/fluidigm_file.rb', line 86

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

#countObject


90
91
92
# File 'app/models/fluidigm_file.rb', line 90

def count
  marker_array.select { |m| m.pass? }.count
end

#gender_markersObject


82
83
84
# File 'app/models/fluidigm_file.rb', line 82

def gender_markers
  marker_array.select { |m| m.gender_marker? }.map(&:gender)
end