mspire 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mspire/mzml/index_list.rb +5 -3
- data/lib/mspire/mzml/reader.rb +1 -1
- data/lib/mspire/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5caadb4ca2d21cd1e38f7c1c0cd1c3b0b202a97
|
4
|
+
data.tar.gz: 833962e9730b48a8d4c88558f237c7b780655187
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 494e529d32f71331b02194356fd5308e30ac43c1c25562d70fb48053fbc4ef576f60e623081dd4d0d71fe4f88df7c08e2e96388b858a40df927f76cacb8789c4
|
7
|
+
data.tar.gz: b00b40b6dd458206035821e34f89ebbecbc12281c63d470862355d3831d88387b28d24ded8971c6d4285e72372b806aeb3e50b153a30e82d999054560cec70f8
|
@@ -63,9 +63,11 @@ module Mspire
|
|
63
63
|
index = Index.new
|
64
64
|
index.name = index_n['name'].to_sym
|
65
65
|
ids = []
|
66
|
-
index_n.children.
|
67
|
-
index
|
68
|
-
|
66
|
+
index_n.children.each do |offset_n|
|
67
|
+
if offset_n.name == 'offset' # <- pwiz sometimes makes an index with no offsets, in violation of the mzML 1.1 schema--this simple check circumvents their mistake
|
68
|
+
index << offset_n.text.to_i
|
69
|
+
ids << offset_n['idRef']
|
70
|
+
end
|
69
71
|
end
|
70
72
|
index.ids = ids
|
71
73
|
index
|
data/lib/mspire/mzml/reader.rb
CHANGED
@@ -40,7 +40,7 @@ module Mspire::Mzml::Reader
|
|
40
40
|
|
41
41
|
# returns a hash keyed by :spectrum or :chromatogram that gives the id
|
42
42
|
# (aka ref) as a string.
|
43
|
-
def get_default_data_processing_ids(io, index_list, lookback=
|
43
|
+
def get_default_data_processing_ids(io, index_list, lookback=300)
|
44
44
|
hash = {}
|
45
45
|
index_list.each_pair do |name, index|
|
46
46
|
io.bookmark do |io|
|
data/lib/mspire/version.rb
CHANGED
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.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John T. Prince
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|