mspire-lipidomics 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "mspire-lipidomics"
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["John T. Prince"]
@@ -36,6 +36,7 @@ Gem::Specification.new do |s|
36
36
  "lib/mspire/lipid/search/probability_distribution.rb",
37
37
  "lib/mspire/lipid/search/query.rb",
38
38
  "lib/mspire/lipid_maps.rb",
39
+ "mspire-lipidomics.gemspec",
39
40
  "scratch/OBConversion_methods.txt",
40
41
  "scratch/atom_methods.txt",
41
42
  "scratch/bond_methods.txt",
@@ -63,20 +64,20 @@ Gem::Specification.new do |s|
63
64
 
64
65
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
65
66
  s.add_runtime_dependency(%q<mspire>, [">= 0.7.8"])
66
- s.add_development_dependency(%q<rubabel>= 0.1.0>, [">= 0"])
67
+ s.add_development_dependency(%q<rubabel>, [">= 0.1.0"])
67
68
  s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
68
69
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
69
70
  s.add_development_dependency(%q<rcov>, [">= 0"])
70
71
  else
71
72
  s.add_dependency(%q<mspire>, [">= 0.7.8"])
72
- s.add_dependency(%q<rubabel>= 0.1.0>, [">= 0"])
73
+ s.add_dependency(%q<rubabel>, [">= 0.1.0"])
73
74
  s.add_dependency(%q<rspec>, ["~> 2.3.0"])
74
75
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
75
76
  s.add_dependency(%q<rcov>, [">= 0"])
76
77
  end
77
78
  else
78
79
  s.add_dependency(%q<mspire>, [">= 0.7.8"])
79
- s.add_dependency(%q<rubabel>= 0.1.0>, [">= 0"])
80
+ s.add_dependency(%q<rubabel>, [">= 0.1.0"])
80
81
  s.add_dependency(%q<rspec>, ["~> 2.3.0"])
81
82
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
82
83
  s.add_dependency(%q<rcov>, [">= 0"])
@@ -105,10 +105,12 @@ actual_mzs.each do |exp_mz|
105
105
  starting_i = range.begin if opts[:lower_bound]
106
106
 
107
107
  closest = ions[range].sort_by {|ion| [(ion.mz - exp_mz).abs, ion.mz] }
108
+ row = [exp_mz]
108
109
  closest[0,opts[:top_n]].each_with_index do |ion,i|
109
110
  rank = i + 1
110
111
  ppm = ((exp_mz - ion.mz) / ion.mz) * 1e6
111
112
  lipid = ion.lipid
112
- puts [exp_mz, rank, ppm, ppm.abs, lipid.category, lipid.lm_id, lipid.common_name, ion.modifications.map(&:charged_formula).join(", ")].join("\t")
113
+ row.push( rank, ppm, ppm.abs, lipid.category, lipid.lm_id, lipid.common_name, ion.modifications.map(&:charged_formula).join(", ") )
113
114
  end
115
+ puts row.join("\t")
114
116
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mspire-lipidomics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: