Class: Ms::Quant::SpectralCounts::Counts
- Inherits:
-
Struct
- Object
- Struct
- Ms::Quant::SpectralCounts::Counts
- Defined in:
- lib/ms/quant/spectral_counts.rb,
lib/ms/quant/spectral_counts.rb
Instance Attribute Summary collapse
-
#aaseq ⇒ Object
Returns the value of attribute aaseq.
-
#aaseqcharge ⇒ Object
Returns the value of attribute aaseqcharge.
-
#spectral ⇒ Object
Returns the value of attribute spectral.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Counts
constructor
A new instance of Counts.
Constructor Details
#initialize(*args) ⇒ Counts
Returns a new instance of Counts.
9 10 11 12 13 |
# File 'lib/ms/quant/spectral_counts.rb', line 9 def initialize(*args) super(*args) # default is zero counts self[0] ||= 0.0 ; self[1] ||= 0.0 ; self[2] ||= 0.0 end |
Instance Attribute Details
#aaseq ⇒ Object
Returns the value of attribute aaseq
7 8 9 |
# File 'lib/ms/quant/spectral_counts.rb', line 7 def aaseq @aaseq end |
#aaseqcharge ⇒ Object
Returns the value of attribute aaseqcharge
7 8 9 |
# File 'lib/ms/quant/spectral_counts.rb', line 7 def aaseqcharge @aaseqcharge end |
#spectral ⇒ Object
Returns the value of attribute spectral
7 8 9 |
# File 'lib/ms/quant/spectral_counts.rb', line 7 def spectral @spectral end |