mspire 0.7.17 → 0.7.18
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.18
|
@@ -15,9 +15,9 @@ end
|
|
15
15
|
DEFAULT_OUTFILE = "quant_compare.tsv"
|
16
16
|
|
17
17
|
DEFAULTS = {
|
18
|
-
:bin_width => Mspire::
|
19
|
-
:bin_unit => Mspire::
|
20
|
-
:split => Mspire::
|
18
|
+
:bin_width => Mspire::Peaklist::DEFAULT_MERGE[:bin_width],
|
19
|
+
:bin_unit => Mspire::Peaklist::DEFAULT_MERGE[:bin_unit],
|
20
|
+
:split => Mspire::Peaklist::DEFAULT_MERGE[:split],
|
21
21
|
:round_mz => 6,
|
22
22
|
:round_intensity => 6,
|
23
23
|
:mz_prefix => "mz"
|
@@ -52,8 +52,6 @@ end
|
|
52
52
|
|
53
53
|
files = ARGV.dup
|
54
54
|
|
55
|
-
peaklist = Mspire::PeakList.new
|
56
|
-
|
57
55
|
if opts[:sample_ids]
|
58
56
|
basename_to_sample_id = YAML.load_file(opts[:sample_ids])
|
59
57
|
end
|
@@ -63,25 +61,27 @@ sample_ids = files.map do |filename|
|
|
63
61
|
basename_to_sample_id ? basename_to_sample_id[basename] : basename
|
64
62
|
end
|
65
63
|
|
66
|
-
peaklists = files.map do |filename|
|
64
|
+
peaklists = files.zip(sample_ids).map do |filename, sample_id|
|
67
65
|
putsv "processing: #{filename}"
|
68
|
-
bunch_of_peaks =
|
66
|
+
bunch_of_peaks = Mspire::Peaklist.new
|
69
67
|
Mspire::Mzml.open(filename) do |mzml|
|
70
68
|
mzml.each_with_index do |spec,i|
|
71
69
|
if spec.ms_level == 1
|
72
|
-
|
70
|
+
spec.mzs.zip(spec.intensities) do |mz, int|
|
71
|
+
bunch_of_peaks.push Mspire::TaggedPeak.new([mz, int], sample_id)
|
72
|
+
end
|
73
73
|
end
|
74
74
|
end
|
75
75
|
end
|
76
|
-
|
77
|
-
|
76
|
+
bunch_of_peaks.sort_by!(&:x)
|
77
|
+
bunch_of_peaks
|
78
78
|
end
|
79
79
|
|
80
80
|
putsv "merging peaks"
|
81
81
|
share_method = :greedy_y
|
82
82
|
#share_method = :share
|
83
83
|
|
84
|
-
ar_of_doublets = Mspire::
|
84
|
+
ar_of_doublets = Mspire::Peaklist.merge_and_deconvolve(peaklists, opts.merge( {:split => share_method, :return_data => true, :have_tagged_peaks => true} ))
|
85
85
|
|
86
86
|
File.open(opts[:outfile],'w') do |out|
|
87
87
|
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mspire
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.18
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-07-
|
13
|
+
date: 2012-07-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: nokogiri
|
@@ -332,7 +332,7 @@ files:
|
|
332
332
|
- spec/mspire/mzml/source_file_spec.rb
|
333
333
|
- spec/mspire/mzml/spectrum_spec.rb
|
334
334
|
- spec/mspire/mzml_spec.rb
|
335
|
-
- spec/mspire/
|
335
|
+
- spec/mspire/peaklist_spec.rb
|
336
336
|
- spec/mspire/plms1_spec.rb
|
337
337
|
- spec/mspire/quant/qspec_spec.rb
|
338
338
|
- spec/mspire/spectrum_spec.rb
|
@@ -390,7 +390,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
390
390
|
version: '0'
|
391
391
|
requirements: []
|
392
392
|
rubyforge_project:
|
393
|
-
rubygems_version: 1.8.
|
393
|
+
rubygems_version: 1.8.18
|
394
394
|
signing_key:
|
395
395
|
specification_version: 3
|
396
396
|
summary: mass spectrometry proteomics, lipidomics, and tools
|