Class: Bio::PepXML::Peptide
- Inherits:
-
Object
- Object
- Bio::PepXML::Peptide
- Defined in:
- lib/pep_xml.rb
Overview
Named ‘Peptide’ but really mean Spectra. Just too hard to change
Instance Attribute Summary collapse
-
#identifier ⇒ Object
Name of the spectra.
-
#parent_proteins ⇒ Object
Returns the value of attribute parent_proteins.
Instance Method Summary collapse
-
#initialize ⇒ Peptide
constructor
A new instance of Peptide.
-
#redundancy ⇒ Object
TODO: right now this just always returns 1.
Constructor Details
#initialize ⇒ Peptide
Returns a new instance of Peptide.
25 26 27 |
# File 'lib/pep_xml.rb', line 25 def initialize @parent_proteins = [] end |
Instance Attribute Details
#identifier ⇒ Object
Name of the spectra
23 24 25 |
# File 'lib/pep_xml.rb', line 23 def identifier @identifier end |
#parent_proteins ⇒ Object
Returns the value of attribute parent_proteins.
20 21 22 |
# File 'lib/pep_xml.rb', line 20 def parent_proteins @parent_proteins end |
Instance Method Details
#redundancy ⇒ Object
TODO: right now this just always returns 1. It should really be working out redundancy properly by comparison of peptide sequences, but this isn’t yet parsed this info
31 32 33 |
# File 'lib/pep_xml.rb', line 31 def redundancy 1 end |