ms-sequest 0.1.0 → 0.1.1

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.0
1
+ 0.1.1
@@ -271,15 +271,17 @@ class Ms::Sequest::Params
271
271
 
272
272
  # returns the enzyme name (but no parentheses connected with the name).
273
273
  # this will likely be capitalized.
274
- def enzyme
275
- v = self.version
274
+ # the regular expression splits the name and returns the first part (or just
275
+ # the name if not found)
276
+ def enzyme(split_on=/[_\(]/)
276
277
  basic_name =
277
- if v == '3.1'
278
+ if self.version == '3.1'
278
279
  Bioworks31_Enzyme_Info_Array[ @opts['enzyme_number'].to_i ][0]
279
- elsif v >= '3.2'
280
+ else # v >= '3.2' applies to all later versions??
280
281
  @opts["enzyme_info"]
281
282
  end
282
- basic_name.split('(')[0]
283
+ name_plus_parenthesis = basic_name.split(' ',2).first
284
+ name_plus_parenthesis.split(split_on,2).first
283
285
  end
284
286
 
285
287
  def max_num_internal_cleavages
@@ -165,6 +165,7 @@ class Ms::Sequest::Srf
165
165
  :raw_data_type => opt[:raw_data].first,
166
166
  ) do |sample_enzyme, search_summary, spectrum_queries|
167
167
  sample_enzyme.merge!(params.sample_enzyme_hash)
168
+ sample_enzyme.name = opt[:enzyme] if opt[:enzyme]
168
169
  search_summary.merge!(
169
170
  :base_name=> srf.resident_dir + '/' + srf.base_name_noext,
170
171
  :search_engine => 'SEQUEST',
@@ -183,7 +184,7 @@ class Ms::Sequest::Srf
183
184
  end
184
185
 
185
186
  enzymatic_search_constraint.merge!(
186
- :enzyme => params.enzyme,
187
+ :enzyme => opt[:enzyme] ? opt[:enzyme] : params.enzyme,
187
188
  :max_num_internal_cleavages => params.max_num_internal_cleavages,
188
189
  :min_number_termini => params.min_number_termini,
189
190
  )
@@ -269,6 +270,7 @@ module Ms::Sequest::Srf::Pepxml
269
270
  text ""
270
271
  text "major options:"
271
272
  opt :db_dir, "The dir holding the DB if different than in Srf. (pepxml requires a valid database path)", :type => :string
273
+ opt :enzyme, "overide the enzyme name embedded in the params file", :type => :string
272
274
  opt :mz_dir, "directory holding mz[X]ML files (defaults to the folder holding the srf file)", :type => :string
273
275
  opt :retention_times, "include retention times (requires mz-dir)"
274
276
  opt :deltacn_orig, "use original deltacn values created by SEQUEST. By default, the top hit gets the next hit's original deltacn."
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ms-sequest
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 0
9
- version: 0.1.0
4
+ prerelease:
5
+ version: 0.1.1
10
6
  platform: ruby
11
7
  authors:
12
8
  - John T. Prince
@@ -14,7 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2011-04-11 00:00:00 -06:00
13
+ date: 2011-04-12 00:00:00 -06:00
18
14
  default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
@@ -25,10 +21,6 @@ dependencies:
25
21
  requirements:
26
22
  - - ">="
27
23
  - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 0
31
- - 20
32
24
  version: 0.0.20
33
25
  type: :runtime
34
26
  version_requirements: *id001
@@ -40,10 +32,6 @@ dependencies:
40
32
  requirements:
41
33
  - - ">="
42
34
  - !ruby/object:Gem::Version
43
- segments:
44
- - 0
45
- - 0
46
- - 17
47
35
  version: 0.0.17
48
36
  type: :runtime
49
37
  version_requirements: *id002
@@ -55,9 +43,6 @@ dependencies:
55
43
  requirements:
56
44
  - - ~>
57
45
  - !ruby/object:Gem::Version
58
- segments:
59
- - 1
60
- - 16
61
46
  version: "1.16"
62
47
  type: :runtime
63
48
  version_requirements: *id003
@@ -69,10 +54,6 @@ dependencies:
69
54
  requirements:
70
55
  - - ~>
71
56
  - !ruby/object:Gem::Version
72
- segments:
73
- - 1
74
- - 5
75
- - 2
76
57
  version: 1.5.2
77
58
  type: :development
78
59
  version_requirements: *id004
@@ -84,10 +65,6 @@ dependencies:
84
65
  requirements:
85
66
  - - ">="
86
67
  - !ruby/object:Gem::Version
87
- segments:
88
- - 0
89
- - 1
90
- - 1
91
68
  version: 0.1.1
92
69
  type: :development
93
70
  version_requirements: *id005
@@ -99,8 +76,6 @@ dependencies:
99
76
  requirements:
100
77
  - - ">="
101
78
  - !ruby/object:Gem::Version
102
- segments:
103
- - 0
104
79
  version: "0"
105
80
  type: :development
106
81
  version_requirements: *id006
@@ -172,21 +147,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
172
147
  requirements:
173
148
  - - ">="
174
149
  - !ruby/object:Gem::Version
175
- segments:
176
- - 0
177
150
  version: "0"
178
151
  required_rubygems_version: !ruby/object:Gem::Requirement
179
152
  none: false
180
153
  requirements:
181
154
  - - ">="
182
155
  - !ruby/object:Gem::Version
183
- segments:
184
- - 0
185
156
  version: "0"
186
157
  requirements: []
187
158
 
188
159
  rubyforge_project: mspire
189
- rubygems_version: 1.3.7
160
+ rubygems_version: 1.6.2
190
161
  signing_key:
191
162
  specification_version: 3
192
163
  summary: An mspire library supporting SEQUEST, Bioworks, SQT, etc