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



357
358
359
# File 'lib/ms/sequest/srf.rb', line 357

def end_mass
  @end_mass
end

#end_scanObject

Integer



372
373
374
# File 'lib/ms/sequest/srf.rb', line 372

def end_scan
  @end_scan
end

#group_scanObject

Integer



361
362
363
# File 'lib/ms/sequest/srf.rb', line 361

def group_scan
  @group_scan
end

#min_group_countObject

not sure if this is correct Integer



364
365
366
# File 'lib/ms/sequest/srf.rb', line 364

def min_group_count
  @min_group_count
end

#min_ion_thresholdObject

Integer



366
367
368
# File 'lib/ms/sequest/srf.rb', line 366

def min_ion_threshold
  @min_ion_threshold
end

#num_dta_filesObject

Integer



359
360
361
# File 'lib/ms/sequest/srf.rb', line 359

def num_dta_files
  @num_dta_files
end

#start_massObject

Float



355
356
357
# File 'lib/ms/sequest/srf.rb', line 355

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



370
371
372
# File 'lib/ms/sequest/srf.rb', line 370

def start_scan
  @start_scan
end

#start_timeObject

not sure if this is correct Float



353
354
355
# File 'lib/ms/sequest/srf.rb', line 353

def start_time
  @start_time
end

Instance Method Details

#from_io(fh) ⇒ Object



375
376
377
378
379
380
# File 'lib/ms/sequest/srf.rb', line 375

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