Class: MS::Sequest::Sqt::Locus

Inherits:
Object
  • Object
show all
Defined in:
lib/ms/sequest/sqt.rb

Constant Summary collapse

Leader =
'L'

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(locus = nil, description = nil, peptides = []) ⇒ Locus

Returns a new instance of Locus.



385
386
387
# File 'lib/ms/sequest/sqt.rb', line 385

def initialize(locus=nil, description=nil, peptides=[])
  super(locus, description)
end

Class Method Details

.from_line(line) ⇒ Object

returns a new Locus object



390
391
392
393
# File 'lib/ms/sequest/sqt.rb', line 390

def self.from_line(line)
  line.chomp!
  self.new( *line.split(MS::Sequest::Sqt::Delimiter) )  # fills in the first two values 
end

Instance Method Details

#first_entryObject



381
# File 'lib/ms/sequest/sqt.rb', line 381

def first_entry ; self[0] end

#idObject



383
# File 'lib/ms/sequest/sqt.rb', line 383

def id ; self[0] end

#referenceObject



382
# File 'lib/ms/sequest/sqt.rb', line 382

def reference ; self[0] end