pubannotation_evaluator 1.0.3 → 1.0.4

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
  SHA256:
3
- metadata.gz: 1ba6d5024226dba72a62356ced9473f6d9c3d0761bf2591240a9463d539b9d47
4
- data.tar.gz: 5fc854a7de2767f26b57d02e7bbf5b371613a08f49a10c3fed9aa2a9e055b2b7
3
+ metadata.gz: 376e4a9f31901fcd78d73c3e55bec639aeddb9abb59ea6a29e3963e8ff3b2bb9
4
+ data.tar.gz: 13d88046528e842b973ed7ec01d3739e964ccb335e49c6c6cd6961e3849302d5
5
5
  SHA512:
6
- metadata.gz: 57c31f7d5c7d4a9400ceed1f582c92c093bf2ea5d47960d57a24b9c1d99cf6e5d9c94e6f138a298f6b0213b01d6bf562d44147ce964a94285aa8182a45ce74e5
7
- data.tar.gz: 9e6bb76a8db19410bd4a66c8442b0cc19a5b50397c63d134bf9128b13963071cd015604588a073ad2c1b3ee91bba76f10ffca2c75ff8a9f8774026b13e26fca2
6
+ metadata.gz: 7db6aa13e45993def9728986c579347b1bdc9dd68107232131f00183beb6716dcf063c96bf3684de559c60eaa4722ded609824d4c7789a84aa375e3d6c28b800
7
+ data.tar.gz: dfff1dbb8cd21d5d9a50db72978089e919266a51d77ad678a763ff50c8d3f5f0550d050e11976e1e5ddac72d241cddbd8c0b8991077a305d70445c557b0ef898
@@ -195,11 +195,11 @@ class PubannotationEvaluator
195
195
  r_matched = []
196
196
  matches_group_by_s = matches.group_by{|m| m[:study]}
197
197
  matches_group_by_s.each_value do |m|
198
+ m.delete_if{|i| r_matched.include?(i[:reference])}
198
199
  if m.length == 1
199
200
  s_matched << m[0][:study]
200
201
  r_matched << m[0][:reference]
201
- else
202
- m.delete_if{|i| r_matched.include?(i[:reference])}
202
+ elsif m.length > 1
203
203
  m_sel = m.max{|a, b| comp.call(a, b)}
204
204
  m.replace([m_sel])
205
205
  s_matched << m_sel[:study]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubannotation_evaluator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jin-Dong Kim