Sha256: f3a69954362fea6d63d82e19948c4a17c9d11f5bcd9c30af2c11a0232c5d9457
Contents?: true
Size: 755 Bytes
Versions: 6
Compression:
Stored size: 755 Bytes
Contents
module Ms module Mass MASCOT_H_PLUS = 1.007276 H_PLUS = 1.00727646677 # need to verify this against HYDROGEN - ELECTRON PROTON = H_PLUS # lower case elements (h = Hydrogen) MONO_STRING = { 'h+' => 1.00727646677, 'h' => 1.007825035, 'h2o' => 18.0105647, 'oh' => 17.002739665, } MONO_SYM = Hash[ MONO_STRING.map {|k,v| [k.to_sym, v] } ] MONO = MONO_STRING.merge(MONO_SYM) # lower case elements (h = Hydrogen) AVG_STRING = { 'h+' => 1.007276, # using Mascot_H_plus mass (is this right for AVG??) 'h' => 1.00794, 'h2o' => 18.01528, 'oh' => 17.00734, } AVG_SYM = Hash[ AVG_STRING.map {|k,v| [k.to_sym, v] } ] AVG = AVG_STRING.merge(AVG_SYM) end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
ms-core-0.0.19 | lib/ms/mass.rb |
ms-core-0.0.18 | lib/ms/mass.rb |
ms-core-0.0.17 | lib/ms/mass.rb |
ms-core-0.0.16 | lib/ms/mass.rb |
ms-core-0.0.14 | lib/ms/mass.rb |
ms-core-0.0.13 | lib/ms/mass.rb |