From cbab8bdd83078a8253dbd03570d47f51473df3f1 Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 31 Jul 2008 10:11:57 +0000 Subject: [PATCH] quick fix for the new uniprot name schema - description line for retrieved uniprot sequences gets the first recommendedName.fullName string found in the entry. --- resources/uniprot_mapping.xml | 155 +++++++++++++++++---------------- src/jalview/ws/dbsources/Uniprot.java | 7 +- 2 files changed, 84 insertions(+), 78 deletions(-) diff --git a/resources/uniprot_mapping.xml b/resources/uniprot_mapping.xml index d955dd7..0f7ffd5 100755 --- a/resources/uniprot_mapping.xml +++ b/resources/uniprot_mapping.xml @@ -1,76 +1,79 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/jalview/ws/dbsources/Uniprot.java b/src/jalview/ws/dbsources/Uniprot.java index 8e7893f..26e9737 100644 --- a/src/jalview/ws/dbsources/Uniprot.java +++ b/src/jalview/ws/dbsources/Uniprot.java @@ -149,9 +149,12 @@ public class Uniprot extends DbSourceProxyImpl implements DbSourceProxy name.append(en2.nextElement()); } - if (entry.getProtein() != null) + if (entry.getProtein()!=null && entry.getProtein().getName()!=null) { - name.append(" " + entry.getProtein().getName().elementAt(0)); + for (int nm=0,nmSize=entry.getProtein().getName().size(); nm