Class: Macroape::Collection
- Inherits:
-
Object
- Object
- Macroape::Collection
- Defined in:
- lib/macroape/collection.rb
Instance Attribute Summary collapse
-
#background ⇒ Object
Returns the value of attribute background.
-
#motifs ⇒ Object
Returns the value of attribute motifs.
-
#precise_discretization ⇒ Object
Returns the value of attribute precise_discretization.
-
#pvalues ⇒ Object
Returns the value of attribute pvalues.
-
#rough_discretization ⇒ Object
Returns the value of attribute rough_discretization.
Instance Method Summary collapse
- #<<(motif_with_thresholds) ⇒ Object
- #==(other) ⇒ Object
-
#initialize(options = {}) ⇒ Collection
constructor
A new instance of Collection.
- #size ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Collection
Returns a new instance of Collection.
5 6 7 8 9 10 11 |
# File 'lib/macroape/collection.rb', line 5 def initialize( = {}) @motifs = [:motifs] || [] @rough_discretization = [:rough_discretization] @precise_discretization = [:precise_discretization] @background = [:background] @pvalues = [:pvalues] end |
Instance Attribute Details
#background ⇒ Object
Returns the value of attribute background.
3 4 5 |
# File 'lib/macroape/collection.rb', line 3 def background @background end |
#motifs ⇒ Object
Returns the value of attribute motifs.
3 4 5 |
# File 'lib/macroape/collection.rb', line 3 def motifs @motifs end |
#precise_discretization ⇒ Object
Returns the value of attribute precise_discretization.
3 4 5 |
# File 'lib/macroape/collection.rb', line 3 def precise_discretization @precise_discretization end |
#pvalues ⇒ Object
Returns the value of attribute pvalues.
3 4 5 |
# File 'lib/macroape/collection.rb', line 3 def pvalues @pvalues end |
#rough_discretization ⇒ Object
Returns the value of attribute rough_discretization.
3 4 5 |
# File 'lib/macroape/collection.rb', line 3 def rough_discretization @rough_discretization end |
Instance Method Details
#<<(motif_with_thresholds) ⇒ Object
21 22 23 |
# File 'lib/macroape/collection.rb', line 21 def <<(motif_with_thresholds) @motifs << motif_with_thresholds end |
#==(other) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/macroape/collection.rb', line 13 def ==(other) (motifs == other.motifs) && (rough_discretization == other.rough_discretization) && (precise_discretization == other.precise_discretization) && (background == other.background) && (pvalues == other.pvalues) end |
#size ⇒ Object
25 26 27 |
# File 'lib/macroape/collection.rb', line 25 def size motifs.size end |