Class: SRF::Header
Constant Summary collapse
- Start_byte =
{ :enzyme => 438, :ion_series => 694, :model => 950, :modifications => 982, :raw_filename => 1822, :db_filename => 2082, :dta_log_filename => 2602, :params_filename => 3122, :sequest_log_filename => 3382, }
- Byte_length =
{ :enzyme => 256, :ion_series => 256, :model => 32, :modifications => 840, :raw_filename => 260, :db_filename => 520, :dta_log_filename => 520, :params_filename => 260, :sequest_log_filename => 262, ## is this really 262?? or should be 260?? }
- Byte_length_v32 =
is this really 262?? or should be 260??
{ :modifications => 456, }
Constants included from BinaryReader
Instance Attribute Summary collapse
-
#db_filename ⇒ Object
Returns the value of attribute db_filename.
-
#dta_gen ⇒ Object
Returns the value of attribute dta_gen.
-
#dta_log_filename ⇒ Object
Returns the value of attribute dta_log_filename.
-
#enzyme ⇒ Object
Returns the value of attribute enzyme.
-
#ion_series ⇒ Object
Returns the value of attribute ion_series.
-
#model ⇒ Object
Returns the value of attribute model.
-
#modifications ⇒ Object
Returns the value of attribute modifications.
-
#params_filename ⇒ Object
Returns the value of attribute params_filename.
-
#raw_filename ⇒ Object
Returns the value of attribute raw_filename.
-
#sequest_log_filename ⇒ Object
Returns the value of attribute sequest_log_filename.
-
#version ⇒ Object
a SRF::DTAGen object.
Instance Method Summary collapse
-
#from_handle(fh) ⇒ Object
sets fh to 0 and grabs the information it wants.
- #num_dta_files ⇒ Object
Methods included from BinaryReader
Instance Attribute Details
#db_filename ⇒ Object
Returns the value of attribute db_filename.
274 275 276 |
# File 'lib/spec_id/srf.rb', line 274 def db_filename @db_filename end |
#dta_gen ⇒ Object
Returns the value of attribute dta_gen.
268 269 270 |
# File 'lib/spec_id/srf.rb', line 268 def dta_gen @dta_gen end |
#dta_log_filename ⇒ Object
Returns the value of attribute dta_log_filename.
275 276 277 |
# File 'lib/spec_id/srf.rb', line 275 def dta_log_filename @dta_log_filename end |
#enzyme ⇒ Object
Returns the value of attribute enzyme.
269 270 271 |
# File 'lib/spec_id/srf.rb', line 269 def enzyme @enzyme end |
#ion_series ⇒ Object
Returns the value of attribute ion_series.
270 271 272 |
# File 'lib/spec_id/srf.rb', line 270 def ion_series @ion_series end |
#model ⇒ Object
Returns the value of attribute model.
271 272 273 |
# File 'lib/spec_id/srf.rb', line 271 def model @model end |
#modifications ⇒ Object
Returns the value of attribute modifications.
272 273 274 |
# File 'lib/spec_id/srf.rb', line 272 def modifications @modifications end |
#params_filename ⇒ Object
Returns the value of attribute params_filename.
276 277 278 |
# File 'lib/spec_id/srf.rb', line 276 def params_filename @params_filename end |
#raw_filename ⇒ Object
Returns the value of attribute raw_filename.
273 274 275 |
# File 'lib/spec_id/srf.rb', line 273 def raw_filename @raw_filename end |
#sequest_log_filename ⇒ Object
Returns the value of attribute sequest_log_filename.
277 278 279 |
# File 'lib/spec_id/srf.rb', line 277 def sequest_log_filename @sequest_log_filename end |
#version ⇒ Object
a SRF::DTAGen object
267 268 269 |
# File 'lib/spec_id/srf.rb', line 267 def version @version end |
Instance Method Details
#from_handle(fh) ⇒ Object
sets fh to 0 and grabs the information it wants
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 |
# File 'lib/spec_id/srf.rb', line 284 def from_handle(fh) st = fh.read(4) @version = '3.' + st.unpack('I').first.to_s @dta_gen = SRF::DTAGen.new.from_handle(fh) ## get the rest of the info byte_length = Byte_length.dup byte_length.merge! Byte_length_v32 if @version == '3.2' fh.pos = Start_byte[:enzyme] [:enzyme, :ion_series, :model, :modifications, :raw_filename, :db_filename, :dta_log_filename, :params_filename, :sequest_log_filename].each do |param| send("#{param}=".to_sym, get_null_padded_string(fh, byte_length[param]) ) end self end |
#num_dta_files ⇒ Object
279 280 281 |
# File 'lib/spec_id/srf.rb', line 279 def num_dta_files @dta_gen.num_dta_files end |