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



430
431
432
# File 'lib/ms/sequest/srf.rb', line 430

def end_mass
  @end_mass
end

#end_scanObject

Integer



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

def end_scan
  @end_scan
end

#group_scanObject

Integer



434
435
436
# File 'lib/ms/sequest/srf.rb', line 434

def group_scan
  @group_scan
end

#min_group_countObject

not sure if this is correct Integer



437
438
439
# File 'lib/ms/sequest/srf.rb', line 437

def min_group_count
  @min_group_count
end

#min_ion_thresholdObject

Integer



439
440
441
# File 'lib/ms/sequest/srf.rb', line 439

def min_ion_threshold
  @min_ion_threshold
end

#num_dta_filesObject

Integer



432
433
434
# File 'lib/ms/sequest/srf.rb', line 432

def num_dta_files
  @num_dta_files
end

#start_massObject

Float



428
429
430
# File 'lib/ms/sequest/srf.rb', line 428

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



443
444
445
# File 'lib/ms/sequest/srf.rb', line 443

def start_scan
  @start_scan
end

#start_timeObject

not sure if this is correct Float



426
427
428
# File 'lib/ms/sequest/srf.rb', line 426

def start_time
  @start_time
end

Class Method Details

.from_io(io) ⇒ Object



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

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



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

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