Class: MS::Ident::Pepxml::SearchHit::Sequest

Inherits:
Struct
  • Object
show all
Defined in:
lib/ms/sequest/srf/pepxml/sequest.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#deltacnObject

Returns the value of attribute deltacn

Returns:

  • (Object)

    the current value of deltacn



6
7
8
# File 'lib/ms/sequest/srf/pepxml/sequest.rb', line 6

def deltacn
  @deltacn
end

#deltacnstarObject

Returns the value of attribute deltacnstar

Returns:

  • (Object)

    the current value of deltacnstar



6
7
8
# File 'lib/ms/sequest/srf/pepxml/sequest.rb', line 6

def deltacnstar
  @deltacnstar
end

#sprankObject

Returns the value of attribute sprank

Returns:

  • (Object)

    the current value of sprank



6
7
8
# File 'lib/ms/sequest/srf/pepxml/sequest.rb', line 6

def sprank
  @sprank
end

#spscoreObject

Returns the value of attribute spscore

Returns:

  • (Object)

    the current value of spscore



6
7
8
# File 'lib/ms/sequest/srf/pepxml/sequest.rb', line 6

def spscore
  @spscore
end

#xcorrObject

Returns the value of attribute xcorr

Returns:

  • (Object)

    the current value of 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