mspire-lipidomics 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/lib/mspire/lipid/modification.rb +6 -0
- data/mspire-lipidomics.gemspec +9 -9
- data/script/find_nearest_lipid.rb +8 -2
- metadata +7 -7
data/Rakefile
CHANGED
@@ -13,8 +13,8 @@ Jeweler::Tasks.new do |gem|
|
|
13
13
|
gem.description = %Q{does lipidomics}
|
14
14
|
gem.email = "jtprince@gmail.com"
|
15
15
|
gem.authors = ["John T. Prince"]
|
16
|
-
gem.add_dependency "mspire", "~> 0.
|
17
|
-
gem.add_development_dependency "rubabel", ">= 0.1.
|
16
|
+
gem.add_dependency "mspire", "~> 0.8.3"
|
17
|
+
gem.add_development_dependency "rubabel", ">= 0.1.6"
|
18
18
|
gem.add_development_dependency "rspec", "~> 2.3.0"
|
19
19
|
gem.add_development_dependency "jeweler", "~> 1.6.4"
|
20
20
|
gem.add_development_dependency "rcov", ">= 0"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.9
|
@@ -42,13 +42,19 @@ module Mspire
|
|
42
42
|
:proton => 'H',
|
43
43
|
:ammonium => 'NH4',
|
44
44
|
:lithium => 'Li',
|
45
|
+
:sodium => 'Na',
|
45
46
|
:water => 'H2O',
|
47
|
+
:ammonia => 'NH3',
|
48
|
+
:carbon_dioxide => 'CO2',
|
46
49
|
}
|
47
50
|
CHARGE = {
|
48
51
|
:proton => 1,
|
49
52
|
:ammonium => 1,
|
50
53
|
:lithium => 1,
|
54
|
+
:sodium=> 1,
|
51
55
|
:water => 0,
|
56
|
+
:ammonia => 0,
|
57
|
+
:carbon_dioxide => 0,
|
52
58
|
}
|
53
59
|
|
54
60
|
# determined by running formulas through Mspire::Mass.massdiff
|
data/mspire-lipidomics.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "mspire-lipidomics"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.9"
|
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"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-09-20"
|
13
13
|
s.description = "does lipidomics"
|
14
14
|
s.email = "jtprince@gmail.com"
|
15
15
|
s.executables = ["lipidomic-search.rb"]
|
@@ -56,28 +56,28 @@ Gem::Specification.new do |s|
|
|
56
56
|
s.homepage = "http://github.com/princelab/mspire-lipidomics"
|
57
57
|
s.licenses = ["MIT"]
|
58
58
|
s.require_paths = ["lib"]
|
59
|
-
s.rubygems_version = "1.8.
|
59
|
+
s.rubygems_version = "1.8.23"
|
60
60
|
s.summary = "mass spectrometry based lipidomics - especially shotgun lipidomics"
|
61
61
|
|
62
62
|
if s.respond_to? :specification_version then
|
63
63
|
s.specification_version = 3
|
64
64
|
|
65
65
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
66
|
-
s.add_runtime_dependency(%q<mspire>, ["~> 0.
|
67
|
-
s.add_development_dependency(%q<rubabel>, [">= 0.1.
|
66
|
+
s.add_runtime_dependency(%q<mspire>, ["~> 0.8.3"])
|
67
|
+
s.add_development_dependency(%q<rubabel>, [">= 0.1.6"])
|
68
68
|
s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
|
69
69
|
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
70
70
|
s.add_development_dependency(%q<rcov>, [">= 0"])
|
71
71
|
else
|
72
|
-
s.add_dependency(%q<mspire>, ["~> 0.
|
73
|
-
s.add_dependency(%q<rubabel>, [">= 0.1.
|
72
|
+
s.add_dependency(%q<mspire>, ["~> 0.8.3"])
|
73
|
+
s.add_dependency(%q<rubabel>, [">= 0.1.6"])
|
74
74
|
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
75
75
|
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
76
76
|
s.add_dependency(%q<rcov>, [">= 0"])
|
77
77
|
end
|
78
78
|
else
|
79
|
-
s.add_dependency(%q<mspire>, ["~> 0.
|
80
|
-
s.add_dependency(%q<rubabel>, [">= 0.1.
|
79
|
+
s.add_dependency(%q<mspire>, ["~> 0.8.3"])
|
80
|
+
s.add_dependency(%q<rubabel>, [">= 0.1.6"])
|
81
81
|
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
82
82
|
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
83
83
|
s.add_dependency(%q<rcov>, [">= 0"])
|
@@ -15,7 +15,10 @@ parser = Trollop::Parser.new do
|
|
15
15
|
banner ""
|
16
16
|
text "modifications: (at least 1 charged mod is required)"
|
17
17
|
opt :lithium, "search for i down to 1 lithium adducts", :default => 0
|
18
|
+
opt :sodium, "search for i down to 1 sodium adducts", :default => 0
|
18
19
|
opt :ammonium, "search for i down to 1 ammonium adducts", :default => 0
|
20
|
+
opt :ammonia_loss, "search for i down to 1 ammonia losses", :default => 0
|
21
|
+
opt :carbon_dioxide_loss, "search for i down to 1 CO2 losses", :default => 0
|
19
22
|
opt :proton_gain, "search for i down to 1 proton additions", :default => 0
|
20
23
|
opt :proton_loss, "search for i down to 1 proton losses", :default => 0
|
21
24
|
opt :water_loss, "if used, *all* mods are also considered with i down to 0 water losses", :default => 0
|
@@ -31,7 +34,7 @@ if ARGV.size == 0
|
|
31
34
|
exit
|
32
35
|
end
|
33
36
|
|
34
|
-
CHARGED_MODS = [:lithium, :ammonium, :proton_gain, :proton_loss]
|
37
|
+
CHARGED_MODS = [:lithium, :sodium, :ammonium, :proton_gain, :proton_loss]
|
35
38
|
|
36
39
|
unless CHARGED_MODS.any? {|key| opts[key] > 0 }
|
37
40
|
puts "*" * 78
|
@@ -63,8 +66,11 @@ mods = {
|
|
63
66
|
proton_gain: LipidMod.new(:proton),
|
64
67
|
water_loss: LipidMod.new(:water, :loss => true),
|
65
68
|
lithium: LipidMod.new(:lithium),
|
69
|
+
sodium: LipidMod.new(:sodium),
|
66
70
|
ammonium: LipidMod.new(:ammonium),
|
67
|
-
proton_loss: LipidMod.new(:proton, :loss => true)
|
71
|
+
proton_loss: LipidMod.new(:proton, :loss => true),
|
72
|
+
ammonia_loss: LipidMod.new(:ammonium, :loss => true),
|
73
|
+
carbon_dioxide_loss: LipidMod.new(:carbon_dioxide, :loss => true),
|
68
74
|
}
|
69
75
|
|
70
76
|
lipids = Mspire::LipidMaps.parse_file(lipidmaps)
|
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
|
+
version: 0.1.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mspire
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.8.3
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.8.3
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: rubabel
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - ! '>='
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 0.1.
|
37
|
+
version: 0.1.6
|
38
38
|
type: :development
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.1.
|
45
|
+
version: 0.1.6
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: rspec
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
version: '0'
|
156
156
|
requirements: []
|
157
157
|
rubyforge_project:
|
158
|
-
rubygems_version: 1.8.
|
158
|
+
rubygems_version: 1.8.23
|
159
159
|
signing_key:
|
160
160
|
specification_version: 3
|
161
161
|
summary: mass spectrometry based lipidomics - especially shotgun lipidomics
|