Class: PeptideMod
- Inherits:
-
Object
- Object
- PeptideMod
- Defined in:
- lib/protk/peptide_mod.rb
Instance Attribute Summary collapse
-
#amino_acid ⇒ Object
Returns the value of attribute amino_acid.
-
#mass ⇒ Object
Returns the value of attribute mass.
-
#position ⇒ Object
Fully Modified Sequence.
Class Method Summary collapse
- .from_data(position, amino_acid, mass) ⇒ Object
-
.from_protxml(xmlnode) ⇒ Object
<modification_info modified_peptide=“GFGFVTYSC[160]VEEVDAAMCARPHK”> <mod_aminoacid_mass position=“9” mass=“160.030600”/> <mod_aminoacid_mass position=“18” mass=“160.030600”/> </modification_info>.
Instance Method Summary collapse
-
#initialize ⇒ PeptideMod
constructor
A new instance of PeptideMod.
Constructor Details
#initialize ⇒ PeptideMod
Returns a new instance of PeptideMod.
38 39 40 |
# File 'lib/protk/peptide_mod.rb', line 38 def initialize() end |
Instance Attribute Details
#amino_acid ⇒ Object
Returns the value of attribute amino_acid.
10 11 12 |
# File 'lib/protk/peptide_mod.rb', line 10 def amino_acid @amino_acid end |
#mass ⇒ Object
Returns the value of attribute mass.
11 12 13 |
# File 'lib/protk/peptide_mod.rb', line 11 def mass @mass end |
#position ⇒ Object
Fully Modified Sequence
9 10 11 |
# File 'lib/protk/peptide_mod.rb', line 9 def position @position end |
Class Method Details
.from_data(position, amino_acid, mass) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/protk/peptide_mod.rb', line 27 def from_data(position,amino_acid,mass) pepmod = new() pepmod.position = position pepmod.amino_acid = amino_acid pepmod.mass = mass pepmod end |
.from_protxml(xmlnode) ⇒ Object
<modification_info modified_peptide=“GFGFVTYSC[160]VEEVDAAMCARPHK”> <mod_aminoacid_mass position=“9” mass=“160.030600”/> <mod_aminoacid_mass position=“18” mass=“160.030600”/> </modification_info>
20 21 22 23 24 25 |
# File 'lib/protk/peptide_mod.rb', line 20 def from_protxml(xmlnode) pepmod = new() pepmod.position=xmlnode['position'].to_i pepmod.mass=xmlnode['mass'].to_f pepmod end |