From 5ae7fc3b4050c0ed10c9e6ad96f4b5360bce5f84 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 21 Aug 2006 14:39:36 +0000 Subject: [PATCH] Add uniprot DBref --- src/jalview/gui/SequenceFetcher.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/jalview/gui/SequenceFetcher.java b/src/jalview/gui/SequenceFetcher.java index f3d8e29..d530b84 100755 --- a/src/jalview/gui/SequenceFetcher.java +++ b/src/jalview/gui/SequenceFetcher.java @@ -301,6 +301,17 @@ public class SequenceFetcher onlyPdbEntries.addElement(pdb); } + Enumeration en2 = entry.getAccession().elements(); + while (en2.hasMoreElements()) + { + sequence[i].getDatasetSequence().addDBRef(new DBRefEntry(DBRefSource.UNIPROT, + "0", + en2.nextElement().toString())); + } + + + + sequence[i].getDatasetSequence().setPDBId(onlyPdbEntries); if (entry.getFeature() != null) { -- 1.7.10.2