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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c92ec4a23bf1ecef8abc24269b4e680c8a7ed8bd
4
- data.tar.gz: 1016a66f7c99acf348ae1a439c77fd54e91431f6
3
+ metadata.gz: c5caadb4ca2d21cd1e38f7c1c0cd1c3b0b202a97
4
+ data.tar.gz: 833962e9730b48a8d4c88558f237c7b780655187
5
5
  SHA512:
6
- metadata.gz: a09382c44d33e3cb5d6f3d307c8306a06af85851645f3d4ee80799b85ecbd41e87b53b8b29ee758909050776356d88eda131b77f169493b299a42af0954486b5
7
- data.tar.gz: b3161fcf60c22a25b2c736612b7d9798c95185a45b9de97d181c791b6311d58fc73a927540385c908b26a394ca0f5dbe550b646e331da8f0d1f924054a216cb4
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.map do |offset_n|
67
- index << offset_n.text.to_i
68
- ids << offset_n['idRef']
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
@@ -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=200)
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|
@@ -1,3 +1,3 @@
1
1
  module Mspire
2
- VERSION = "0.10.1"
2
+ VERSION = "0.10.2"
3
3
  end
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.1
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-01 00:00:00.000000000 Z
12
+ date: 2013-10-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri