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

Instance Method Summary collapse

Instance Attribute Details

#end_massObject

Float


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

def end_mass
  @end_mass
end

#end_scanObject

Integer


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

def end_scan
  @end_scan
end

#group_scanObject

Integer


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

def group_scan
  @group_scan
end

#min_group_countObject

not sure if this is correct Integer


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

def min_group_count
  @min_group_count
end

#min_ion_thresholdObject

Integer


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

def min_ion_threshold
  @min_ion_threshold
end

#num_dta_filesObject

Integer


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

def num_dta_files
  @num_dta_files
end

#start_massObject

Float


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

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


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

def start_scan
  @start_scan
end

#start_timeObject

not sure if this is correct Float


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

def start_time
  @start_time
end

Instance Method Details

#from_io(fh) ⇒ Object


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

def from_io(fh)
  fh.pos = 0 if fh.pos != 0  
  st = fh.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