Sha256: 5e5a6cc7e097e04d820383dea77b12a42c4a0335c611293cb03fa24f986c5a38
Contents?: true
Size: 546 Bytes
Versions: 2
Compression:
Stored size: 546 Bytes
Contents
require 'spec_helper.rb' require 'ms/in_silico/fragment' describe 'creating fragmentation spectra' do it 'creates tandem mass spectra from a peptide' do frag = Ms::InSilico::Fragment.new :charge => 1, :series => ['b'] spec = Ms::InSilico::Spectrum.new('TVQQEL', 'H', 'HO') headers = frag.headers(spec) headers[:charge].is 1 headers[:nterm].is 'H' headers[:cterm].is 'HO' headers[:parent_ion_mass].should.be.close 717.377745628191, 0.000000000001 headers[:series].is ['b'] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ms-in_silico-0.4.2 | spec/ms/in_silico/fragment_spec.rb |
ms-in_silico-0.4.1 | spec/ms/in_silico/fragment_spec.rb |