ms-core 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ms/mass/aa.rb +20 -20
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.17
|
data/lib/ms/mass/aa.rb
CHANGED
@@ -3,7 +3,7 @@ require 'ms/mass'
|
|
3
3
|
module Ms
|
4
4
|
module Mass
|
5
5
|
|
6
|
-
|
6
|
+
|
7
7
|
# A module for working with commonly used residue masses in proteomics.
|
8
8
|
#
|
9
9
|
# require 'ms/mass/aa'
|
@@ -80,26 +80,26 @@ module Ms
|
|
80
80
|
"W"=>186.0793129535,
|
81
81
|
"X"=>118.805716,
|
82
82
|
"Y"=>163.0633285383,
|
83
|
-
"Z"=>128.550585
|
84
|
-
|
83
|
+
"Z"=>128.550585
|
84
|
+
}
|
85
85
|
|
86
|
-
|
87
|
-
|
86
|
+
# amino_acids keys as symbols, monoisotopic masses
|
87
|
+
MONO_SYM = Hash[MONO_STRING.map {|aa,mass| [aa.to_sym, mass] } ]
|
88
88
|
|
89
|
-
|
90
|
-
|
89
|
+
# amino_acids keys as symbols, average masses
|
90
|
+
AVG_SYM = Hash[AVG_STRING.map {|aa,mass| [aa.to_sym, mass] } ]
|
91
91
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
92
|
+
# Monoisotopic amino acid masses keyed as symbols and also strings (all
|
93
|
+
# upper case). Also includes Ms::Mass::MONO for things like protons ('h+')
|
94
|
+
MONO = MONO_SYM.merge(MONO_STRING).merge(Ms::Mass::MONO)
|
95
|
+
# Average amino acid masses keyed as symbols and also strings (all
|
96
|
+
# uppder case). Also includes Ms::Mass::AVG for things like protons ('h+')
|
97
|
+
AVG = AVG_SYM.merge(AVG_STRING).merge(Ms::Mass::AVG)
|
98
98
|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
99
|
+
###########################################################################
|
100
|
+
# This section is broken in 1.9 (ruby-units fault), so we generate the
|
101
|
+
# data and include it.
|
102
|
+
###########################################################################
|
103
103
|
|
104
104
|
=begin
|
105
105
|
# These are included here to offer maximum functionality
|
@@ -165,9 +165,9 @@ module Ms
|
|
165
165
|
|
166
166
|
=end
|
167
167
|
|
168
|
-
|
169
|
-
|
170
|
-
|
168
|
+
###########################################################################
|
169
|
+
# End fudge
|
170
|
+
###########################################################################
|
171
171
|
|
172
172
|
end
|
173
173
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 17
|
9
|
+
version: 0.0.17
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- John T. Prince
|
@@ -144,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
144
144
|
requirements:
|
145
145
|
- - ">="
|
146
146
|
- !ruby/object:Gem::Version
|
147
|
-
hash:
|
147
|
+
hash: 268691801649348521
|
148
148
|
segments:
|
149
149
|
- 0
|
150
150
|
version: "0"
|