Class: Mspire::Mzid::Modification

Inherits:
Object
  • Object
show all
Includes:
CV::Paramable
Defined in:
lib/mspire/mzid/modification.rb

Instance Attribute Summary collapse

Method Summary

Methods included from CV::Paramable

#describe!, #describe_from_xml!, #describe_many!, #describe_self_from_xml!, #each_param, #fetch, #fetch_by_accession, #initialize, #param?, #param_by_accession, #params?, #reject!, #replace!, #replace_many!, #to_xml

Instance Attribute Details

#avg_mass_deltaObject

optional avg mass



8
9
10
# File 'lib/mspire/mzid/modification.rb', line 8

def avg_mass_delta
  @avg_mass_delta
end

#locationObject

From IdentML spec: “Location of the modification within the peptide - position in peptide sequence, counted from the N-terminus residue, starting at position 1. Specific modifications to the N-terminus should be given the location 0. Modification to the C-terminus should be given as peptide length + 1. If the modification location is unknown e.g. for PMF data, this attribute should be omitted.”



16
17
18
# File 'lib/mspire/mzid/modification.rb', line 16

def location
  @location
end

#monoisotopic_mass_deltaObject

Returns the value of attribute monoisotopic_mass_delta.



18
19
20
# File 'lib/mspire/mzid/modification.rb', line 18

def monoisotopic_mass_delta
  @monoisotopic_mass_delta
end

#residuesObject

Array of residues. Specification of the residue (amino acid) on which the modification occurs. If multiple values are given, it is assumed that the exact residue modified is unknown i.e. the modification is to ONE of the residues listed. Multiple residues would usually only be specified for PMF data.



25
26
27
# File 'lib/mspire/mzid/modification.rb', line 25

def residues
  @residues
end