From: jprocter Date: Thu, 31 Jul 2008 10:11:57 +0000 (+0000) Subject: quick fix for the new uniprot name schema - description line for retrieved uniprot... X-Git-Tag: Release_2_4~76 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=cbab8bdd83078a8253dbd03570d47f51473df3f1;p=jalview.git quick fix for the new uniprot name schema - description line for retrieved uniprot sequences gets the first recommendedName.fullName string found in the entry. --- 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