protk 1.3.1.pre2 → 1.3.1.pre3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/protxml_to_psql.rb +19 -3
  3. metadata +41 -40
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 888f8ebff75c2c33497c9bf4f7aeec182311b7e3
4
- data.tar.gz: 4102a91afbee688babe093df8a53b84b097ba0c3
3
+ metadata.gz: 7d5d14d3a6fdd45c7ac3be6f122a9a30dd5e3823
4
+ data.tar.gz: c77c6b6a83386426ad8a727866f0c0ca8a0c42b5
5
5
  SHA512:
6
- metadata.gz: 3e67189a07c6ac237a4def19ad90043ab8919d5492fd43b67cfa5fc3285819b2fd62671375283c5d9dd05618c746603ba829c70225b140b3a52ccba9fafb24f8
7
- data.tar.gz: 354a9eb2499d3f8b194ccdef82f06692672435a0e47b5b49197b9f1fba2c27181275d38c98fe6f644750b554b4b1601b873f6a51a0318853b86b17d7783f2e57
6
+ metadata.gz: 62ddf0c0d8b42a12a34a0f81b866b823a85af7a8cb7908ea6080604fcc64e9fb8c3ad24eb3f7aa8ef6ffc8333d004d778e563fab4e152d054a2dca266c9d0287
7
+ data.tar.gz: 19bfc66be4caace10de8c4c602a9ff9ed9d397db2f836b60351350ecade6abf9f046de53b2b717ac1a49e483f470a15337cecb27f6b654b8bd9b51d09bb65c62
@@ -301,7 +301,7 @@ def lookup_spectra_from_files(file_list,matched_spectra)
301
301
  total_spectra=0
302
302
 
303
303
  file_list.each do |file|
304
- mzml_parser = MzMLParser.new(file)
304
+ mzml_parser = MzMLParser.new(find_file(file))
305
305
 
306
306
  spec = mzml_parser.next_spectrum
307
307
 
@@ -334,7 +334,22 @@ def lookup_spectra_from_files(file_list,matched_spectra)
334
334
 
335
335
  end
336
336
 
337
- # Setup specific command-line options for this tool. Other options are inherited from ProphetTool
337
+ def find_file(path)
338
+ if File.exists? path
339
+ return path
340
+ else # Search in search paths
341
+ filename = Pathname.new(path).basename.to_s
342
+ $search_paths.each do |sp|
343
+ pth = File.join(sp,filename)
344
+ if File.exists? pth
345
+ return pth
346
+ end
347
+ end
348
+ end
349
+ return nil
350
+ end
351
+
352
+ # Setup specific command-line options for this tool. Other options are inherited
338
353
  #
339
354
  tool=Tool.new([:explicit_output,:over_write])
340
355
  tool.option_parser.banner = "Convert a protXML file to a sqlite database.\n\nUsage: protxml_to_psql.rb [options] file1.protXML"
@@ -347,6 +362,7 @@ exit unless tool.check_options(true,[:explicit_output])
347
362
 
348
363
  input_file=ARGV.shift
349
364
 
365
+ $search_paths = [Pathname.new(input_file).dirname.to_s,Pathname.new(".").realpath.to_s]
350
366
 
351
367
  if File.exists? tool.explicit_output
352
368
  throw "Cant overwrite existing db #{tool.explicit_output}" unless tool.over_write
@@ -386,7 +402,7 @@ matched_spectra=[]
386
402
  headers_with_inputs.each do |header|
387
403
  pepxml_files = header.attributes['source_files'].split(",")
388
404
  pepxml_files.each do |pepxml_file|
389
- matched_spectra.concat insert_psms_from_file(pepxml_file)
405
+ matched_spectra.concat insert_psms_from_file(find_file(pepxml_file))
390
406
  end
391
407
  end
392
408
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1.pre2
4
+ version: 1.3.1.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ira Cooke
@@ -216,38 +216,7 @@ extensions:
216
216
  - ext/decoymaker/extconf.rb
217
217
  extra_rdoc_files: []
218
218
  files:
219
- - lib/protk/bio_gff3_extensions.rb
220
- - lib/protk/bio_sptr_extensions.rb
221
- - lib/protk/command_runner.rb
222
- - lib/protk/constants.rb
223
- - lib/protk/convert_util.rb
224
- - lib/protk/data/make_uniprot_table.rb
225
- - lib/protk/fastadb.rb
226
- - lib/protk/galaxy_stager.rb
227
- - lib/protk/galaxy_util.rb
228
- - lib/protk/gffdb.rb
229
- - lib/protk/manage_db_tool.rb
230
- - lib/protk/mascot_util.rb
231
- - lib/protk/mzml_parser.rb
232
- - lib/protk/omssa_util.rb
233
- - lib/protk/openms_defaults.rb
234
- - lib/protk/peptide.rb
235
- - lib/protk/pepxml.rb
236
- - lib/protk/plasmodb.rb
237
- - lib/protk/prophet_tool.rb
238
- - lib/protk/protein.rb
239
- - lib/protk/protein_to_genome_mapper.rb
240
- - lib/protk/protxml_to_gff_tool.rb
241
- - lib/protk/randomize.rb
242
- - lib/protk/search_tool.rb
243
- - lib/protk/setup_tool.rb
244
- - lib/protk/swissprot_database.rb
245
- - lib/protk/tandem_search_tool.rb
246
- - lib/protk/tool.rb
247
- - lib/protk/uniprot_mapper.rb
248
- - lib/protk.rb
249
- - lib/protk/manage_db_rakefile.rake
250
- - lib/protk/setup_rakefile.rake
219
+ - README.md
251
220
  - bin/add_retention_times.rb
252
221
  - bin/augustus_to_proteindb.rb
253
222
  - bin/interprophet.rb
@@ -271,14 +240,22 @@ files:
271
240
  - bin/tandem_to_pepxml.rb
272
241
  - bin/unimod_to_loc.rb
273
242
  - bin/uniprot_mapper.rb
274
- - README.md
275
- - lib/protk/data/apt-get_packages.yaml
276
- - lib/protk/data/brew_packages.yaml
277
- - lib/protk/data/default_config.yml
243
+ - ext/decoymaker/decoymaker.c
244
+ - ext/decoymaker/extconf.rb
245
+ - lib/protk.rb
246
+ - lib/protk/bio_gff3_extensions.rb
247
+ - lib/protk/bio_sptr_extensions.rb
248
+ - lib/protk/command_runner.rb
249
+ - lib/protk/constants.rb
250
+ - lib/protk/convert_util.rb
278
251
  - lib/protk/data/ExecutePipeline.trf
279
252
  - lib/protk/data/FeatureFinderCentroided.ini
280
253
  - lib/protk/data/FeatureFinderIsotopeWavelet.ini
254
+ - lib/protk/data/apt-get_packages.yaml
255
+ - lib/protk/data/brew_packages.yaml
256
+ - lib/protk/data/default_config.yml
281
257
  - lib/protk/data/galaxyenv.sh
258
+ - lib/protk/data/make_uniprot_table.rb
282
259
  - lib/protk/data/predefined_db.crap.yaml
283
260
  - lib/protk/data/predefined_db.sphuman.yaml
284
261
  - lib/protk/data/predefined_db.swissprot_annotation.yaml
@@ -293,8 +270,31 @@ files:
293
270
  - lib/protk/data/uniprot_accessions_table.txt
294
271
  - lib/protk/data/uniprot_input_accessions.loc
295
272
  - lib/protk/data/yum_packages.yaml
296
- - ext/decoymaker/decoymaker.c
297
- - ext/decoymaker/extconf.rb
273
+ - lib/protk/fastadb.rb
274
+ - lib/protk/galaxy_stager.rb
275
+ - lib/protk/galaxy_util.rb
276
+ - lib/protk/gffdb.rb
277
+ - lib/protk/manage_db_rakefile.rake
278
+ - lib/protk/manage_db_tool.rb
279
+ - lib/protk/mascot_util.rb
280
+ - lib/protk/mzml_parser.rb
281
+ - lib/protk/omssa_util.rb
282
+ - lib/protk/openms_defaults.rb
283
+ - lib/protk/peptide.rb
284
+ - lib/protk/pepxml.rb
285
+ - lib/protk/plasmodb.rb
286
+ - lib/protk/prophet_tool.rb
287
+ - lib/protk/protein.rb
288
+ - lib/protk/protein_to_genome_mapper.rb
289
+ - lib/protk/protxml_to_gff_tool.rb
290
+ - lib/protk/randomize.rb
291
+ - lib/protk/search_tool.rb
292
+ - lib/protk/setup_rakefile.rake
293
+ - lib/protk/setup_tool.rb
294
+ - lib/protk/swissprot_database.rb
295
+ - lib/protk/tandem_search_tool.rb
296
+ - lib/protk/tool.rb
297
+ - lib/protk/uniprot_mapper.rb
298
298
  homepage: http://rubygems.org/gems/protk
299
299
  licenses:
300
300
  - LGPL-2.1
@@ -315,8 +315,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
315
315
  version: 1.3.1
316
316
  requirements: []
317
317
  rubyforge_project:
318
- rubygems_version: 2.0.14
318
+ rubygems_version: 2.2.1
319
319
  signing_key:
320
320
  specification_version: 4
321
321
  summary: Proteomics Toolkit
322
322
  test_files: []
323
+ has_rdoc: