Class: Mspire::Mzid::Modification
- Inherits:
-
Object
- Object
- Mspire::Mzid::Modification
- Includes:
- CV::Paramable
- Defined in:
- lib/mspire/mzid/modification.rb
Instance Attribute Summary collapse
-
#avg_mass_delta ⇒ Object
optional avg mass.
-
#location ⇒ Object
From IdentML spec: “Location of the modification within the peptide - position in peptide sequence, counted from the N-terminus residue, starting at position 1.
-
#monoisotopic_mass_delta ⇒ Object
Returns the value of attribute monoisotopic_mass_delta.
-
#residues ⇒ Object
Array of residues.
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_delta ⇒ Object
optional avg mass
8 9 10 |
# File 'lib/mspire/mzid/modification.rb', line 8 def avg_mass_delta @avg_mass_delta end |
#location ⇒ Object
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_delta ⇒ Object
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 |
#residues ⇒ Object
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 |