Sha256: aa8a0c0072dad995878e81a262a40bd7b9e0a3625df1099f719f020ee0a85d78
Contents?: true
Size: 760 Bytes
Versions: 2
Compression:
Stored size: 760 Bytes
Contents
require 'spec_helper' require 'ms/isotope/distribution' describe 'MS::Isotope::Distribution class methods' do before do @data = [1.0, 0.08919230588715289, 0.017894161377222082, 0.0013573997600723623, 0.0001398330738144092] end it 'can calculate isotope distributions' do MS::Isotope::Distribution.calculate('C8O7', :max).should == @data end # no m/z values, just mass values it 'can calculate isotope distribution spectrum' do spec = MS::Isotope::Distribution.spectrum('C8O7', :max) spec.mzs.should == [207.96440233692, 208.97306725252, 209.98173216812, 210.99039708372, 211.99906199932002] spec.intensities.should == [1.0, 0.08919230588715289, 0.017894161377222082, 0.0013573997600723623, 0.0001398330738144092] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mspire-0.6.26 | spec/ms/isotope/distribution_spec.rb |
mspire-0.6.25 | spec/ms/isotope/distribution_spec.rb |