Class: Bio::PepXML::Peptide

Inherits:
Object
  • Object
show all
Defined in:
lib/pep_xml.rb

Overview

Named ‘Peptide’ but really mean Spectra. Just too hard to change

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePeptide

Returns a new instance of Peptide.



25
26
27
# File 'lib/pep_xml.rb', line 25

def initialize
  @parent_proteins = []
end

Instance Attribute Details

#identifierObject

Name of the spectra



23
24
25
# File 'lib/pep_xml.rb', line 23

def identifier
  @identifier
end

#parent_proteinsObject

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

#redundancyObject

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