Class: Ms::Sequest::Srf::DtaGen
- Inherits:
-
Object
- Object
- Ms::Sequest::Srf::DtaGen
- Defined in:
- lib/ms/sequest/srf.rb
Overview
the Dta Generation Params
Instance Attribute Summary collapse
-
#end_mass ⇒ Object
Float.
-
#end_scan ⇒ Object
Integer.
-
#group_scan ⇒ Object
Integer.
-
#min_group_count ⇒ Object
not sure if this is correct Integer.
-
#min_ion_threshold ⇒ Object
Integer.
-
#num_dta_files ⇒ Object
Integer.
-
#start_mass ⇒ Object
Float.
-
#start_scan ⇒ Object
attr_accessor :intensity_threshold # can’t find yet attr_accessor :precursor_tolerance # can’t find yet Integer.
-
#start_time ⇒ Object
not sure if this is correct Float.
Class Method Summary collapse
Instance Method Summary collapse
-
#from_io(io) ⇒ Object
sets self based on the io object and returns self.
Instance Attribute Details
#end_mass ⇒ Object
Float
450 451 452 |
# File 'lib/ms/sequest/srf.rb', line 450 def end_mass @end_mass end |
#end_scan ⇒ Object
Integer
465 466 467 |
# File 'lib/ms/sequest/srf.rb', line 465 def end_scan @end_scan end |
#group_scan ⇒ Object
Integer
454 455 456 |
# File 'lib/ms/sequest/srf.rb', line 454 def group_scan @group_scan end |
#min_group_count ⇒ Object
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_threshold ⇒ Object
Integer
459 460 461 |
# File 'lib/ms/sequest/srf.rb', line 459 def min_ion_threshold @min_ion_threshold end |
#num_dta_files ⇒ Object
Integer
452 453 454 |
# File 'lib/ms/sequest/srf.rb', line 452 def num_dta_files @num_dta_files end |
#start_mass ⇒ Object
Float
448 449 450 |
# File 'lib/ms/sequest/srf.rb', line 448 def start_mass @start_mass end |
#start_scan ⇒ Object
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_time ⇒ Object
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 |