Class: Sequest::PepXML::AAModification

Inherits:
Object
  • Object
show all
Includes:
SpecIDXML
Defined in:
lib/ms/sequest/pepxml.rb

Overview

Modified aminoacid, static or variable unless otherwise stated, all attributes can be anything

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash = nil) ⇒ AAModification

Returns a new instance of AAModification.



1136
1137
1138
# File 'lib/ms/sequest/pepxml.rb', line 1136

def initialize(hash=nil)
  instance_var_set_from_hash(hash) if hash # can use unless there are weird methods
end

Instance Attribute Details

#aminoacidObject

The amino acid (one letter code)



1116
1117
1118
# File 'lib/ms/sequest/pepxml.rb', line 1116

def aminoacid
  @aminoacid
end

#binaryObject

Y if each peptide must have only modified or unmodified aminoacid, N if a peptide may contain both modified and unmodified aminoacid



1134
1135
1136
# File 'lib/ms/sequest/pepxml.rb', line 1134

def binary
  @binary
end

#massObject

Mass of modified aminoacid



1123
1124
1125
# File 'lib/ms/sequest/pepxml.rb', line 1123

def mass
  @mass
end

#massdiffObject

Must be a string!!!! Mass difference with respect to unmodified aminoacid, must begin with either + (nonnegative) or - [e.g. +1.05446 or -2.3342] consider Numeric#to_plus_minus_string at top



1121
1122
1123
# File 'lib/ms/sequest/pepxml.rb', line 1121

def massdiff
  @massdiff
end

#peptide_terminusObject

whether modification can reside only at protein terminus (specified ‘n’, ‘c’, or ‘nc’)



1129
1130
1131
# File 'lib/ms/sequest/pepxml.rb', line 1129

def peptide_terminus
  @peptide_terminus
end

#symbolObject

MSial symbol used by search engine to designate this modification



1131
1132
1133
# File 'lib/ms/sequest/pepxml.rb', line 1131

def symbol
  @symbol
end

#variableObject

Y if both modified and unmodified aminoacid could be present in the dataset, N if only modified aminoacid can be present



1126
1127
1128
# File 'lib/ms/sequest/pepxml.rb', line 1126

def variable
  @variable
end

Instance Method Details

#to_pepxmlObject



1140
1141
1142
1143
# File 'lib/ms/sequest/pepxml.rb', line 1140

def to_pepxml
  # note massdiff
  short_element_xml_and_att_string("aminoacid_modification", "aminoacid=\"#{aminoacid}\" massdiff=\"#{massdiff.to_plus_minus_string}\" mass=\"#{mass}\" variable=\"#{variable}\" peptide_terminus=\"#{peptide_terminus}\" symbol=\"#{symbol}\" binary=\"#{binary}\"")
end