Class: Ms::Sequest::Srf::DtaGen

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

Overview

the Dta Generation Params

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#end_massObject

Float



450
451
452
# File 'lib/ms/sequest/srf.rb', line 450

def end_mass
  @end_mass
end

#end_scanObject

Integer



465
466
467
# File 'lib/ms/sequest/srf.rb', line 465

def end_scan
  @end_scan
end

#group_scanObject

Integer



454
455
456
# File 'lib/ms/sequest/srf.rb', line 454

def group_scan
  @group_scan
end

#min_group_countObject

not sure if this is correct Integer



457
458
459
# File 'lib/ms/sequest/srf.rb', line 457

def min_group_count
  @min_group_count
end

#min_ion_thresholdObject

Integer



459
460
461
# File 'lib/ms/sequest/srf.rb', line 459

def min_ion_threshold
  @min_ion_threshold
end

#num_dta_filesObject

Integer



452
453
454
# File 'lib/ms/sequest/srf.rb', line 452

def num_dta_files
  @num_dta_files
end

#start_massObject

Float



448
449
450
# File 'lib/ms/sequest/srf.rb', line 448

def start_mass
  @start_mass
end

#start_scanObject

attr_accessor :intensity_threshold # can’t find yet attr_accessor :precursor_tolerance # can’t find yet Integer



463
464
465
# File 'lib/ms/sequest/srf.rb', line 463

def start_scan
  @start_scan
end

#start_timeObject

not sure if this is correct Float



446
447
448
# File 'lib/ms/sequest/srf.rb', line 446

def start_time
  @start_time
end

Class Method Details

.from_io(io) ⇒ Object



467
468
469
# File 'lib/ms/sequest/srf.rb', line 467

def self.from_io(io)
  self.new.from_io(io)
end

Instance Method Details

#from_io(io) ⇒ Object

sets self based on the io object and returns self



472
473
474
475
476
477
# File 'lib/ms/sequest/srf.rb', line 472

def from_io(io)
  io.pos = 0 if io.pos != 0  
  st = io.read(148)
  (@start_time, @start_mass, @end_mass, @num_dta_files, @group_scan, @min_group_count, @min_ion_threshold, @start_scan, @end_scan) = st.unpack('x36ex12ex4ex48Ix12IIIII')
  self
end