class Bio::DTASelect::OutputFile::Peptide

Attributes

dtaselect_attributes[RW]

Hash of column names to values. These are different for different DTAselect output files, it seems.

identifier[RW]
parent_proteins[RW]

Array of proteins that have this peptide associated

Public Class Methods

new() click to toggle source
# File lib/dta_select_output.rb, line 45
def initialize
  @parent_proteins = []
end

Public Instance Methods

inspect() click to toggle source
# File lib/dta_select_output.rb, line 49
def inspect
  "Peptide: #{@parent_proteins.length} @parent_proteins: [#{@parent_proteins.collect{|pro| pro.identifier}.join(', ')} @identifier: #{identifier}, @attributes: #{dtaselect_attributes.inspect}]"
end
redundancy() click to toggle source
# File lib/dta_select_output.rb, line 53
def redundancy
  @dtaselect_attributes['Redundancy'].to_i
end
reported_unique?() click to toggle source
# File lib/dta_select_output.rb, line 57
def reported_unique?
  dtaselect_attributes.length == 1
end