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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 376e4a9f31901fcd78d73c3e55bec639aeddb9abb59ea6a29e3963e8ff3b2bb9
|
4
|
+
data.tar.gz: 13d88046528e842b973ed7ec01d3739e964ccb335e49c6c6cd6961e3849302d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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]
|