git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-2681 canonicalise DB source before fetching to avoid fetching the same ref !
[jalview.git]
/
src
/
jalview
/
ws
/
seqfetcher
/
ASequenceFetcher.java
diff --git
a/src/jalview/ws/seqfetcher/ASequenceFetcher.java
b/src/jalview/ws/seqfetcher/ASequenceFetcher.java
index
a07e88b
..
9284f82
100644
(file)
--- a/
src/jalview/ws/seqfetcher/ASequenceFetcher.java
+++ b/
src/jalview/ws/seqfetcher/ASequenceFetcher.java
@@
-130,11
+130,12
@@
public class ASequenceFetcher
Hashtable<String, List<String>> queries = new Hashtable<>();
for (DBRefEntry ref : refs)
{
Hashtable<String, List<String>> queries = new Hashtable<>();
for (DBRefEntry ref : refs)
{
- if (!queries.containsKey(ref.getSource()))
+ String canonical = DBRefUtils.getCanonicalName(ref.getSource());
+ if (!queries.containsKey(canonical))
{
{
- queries.put(ref.getSource(), new ArrayList<String>());
+ queries.put(canonical, new ArrayList<String>());
}
}
- List<String> qset = queries.get(ref.getSource());
+ List<String> qset = queries.get(canonical);
if (!qset.contains(ref.getAccessionId()))
{
qset.add(ref.getAccessionId());
if (!qset.contains(ref.getAccessionId()))
{
qset.add(ref.getAccessionId());