Class: MS::Ident::Pepxml::SearchHit::Sequest
- Inherits:
-
Struct
- Object
- Struct
- MS::Ident::Pepxml::SearchHit::Sequest
- Defined in:
- lib/ms/sequest/srf/pepxml/sequest.rb
Instance Attribute Summary collapse
-
#deltacn ⇒ Object
Returns the value of attribute deltacn.
-
#deltacnstar ⇒ Object
Returns the value of attribute deltacnstar.
-
#sprank ⇒ Object
Returns the value of attribute sprank.
-
#spscore ⇒ Object
Returns the value of attribute spscore.
-
#xcorr ⇒ Object
Returns the value of attribute xcorr.
Class Method Summary collapse
-
.split_ions(ions) ⇒ Object
Takes ions in the form XX/YY and returns [XX.to_i, YY.to_i].
Instance Method Summary collapse
Instance Attribute Details
#deltacn ⇒ Object
Returns the value of attribute deltacn
6 7 8 |
# File 'lib/ms/sequest/srf/pepxml/sequest.rb', line 6 def deltacn @deltacn end |
#deltacnstar ⇒ Object
Returns the value of attribute deltacnstar
6 7 8 |
# File 'lib/ms/sequest/srf/pepxml/sequest.rb', line 6 def deltacnstar @deltacnstar end |
#sprank ⇒ Object
Returns the value of attribute sprank
6 7 8 |
# File 'lib/ms/sequest/srf/pepxml/sequest.rb', line 6 def sprank @sprank end |
#spscore ⇒ Object
Returns the value of attribute spscore
6 7 8 |
# File 'lib/ms/sequest/srf/pepxml/sequest.rb', line 6 def spscore @spscore end |
#xcorr ⇒ Object
Returns the value of attribute xcorr
6 7 8 |
# File 'lib/ms/sequest/srf/pepxml/sequest.rb', line 6 def xcorr @xcorr end |
Class Method Details
.split_ions(ions) ⇒ Object
Takes ions in the form XX/YY and returns [XX.to_i, YY.to_i]
9 10 11 |
# File 'lib/ms/sequest/srf/pepxml/sequest.rb', line 9 def self.split_ions(ions) ions.split("/").map {|ion| ion.to_i } end |
Instance Method Details
#to_xml(builder) ⇒ Object
13 14 15 16 17 |
# File 'lib/ms/sequest/srf/pepxml/sequest.rb', line 13 def to_xml(builder) members.zip(self.to_a) do |sym, val| builder.search_score(:name => sym, :value => val) end end |