From: jprocter Date: Mon, 13 Mar 2006 16:52:54 +0000 (+0000) Subject: fixes bug 0013013 but reveals lack of a 'features retrieved' flag that should be... X-Git-Tag: Root_VamJalview_2_07b+~69 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=4944c2f33bb34b4f262fd2f3ae40dcdc2a825557;p=jalview.git fixes bug 0013013 but reveals lack of a 'features retrieved' flag that should be set when a sequence's uniprot record has been retrieved and all its sequence features have been added. --- diff --git a/src/jalview/io/SequenceFeatureFetcher.java b/src/jalview/io/SequenceFeatureFetcher.java index 7f11149..00afc39 100755 --- a/src/jalview/io/SequenceFeatureFetcher.java +++ b/src/jalview/io/SequenceFeatureFetcher.java @@ -113,8 +113,14 @@ public class SequenceFeatureFetcher implements Runnable seqIndex++, i++) { Sequence sequence = (Sequence) sequences.get(seqIndex); - if(sequence.getSequenceFeatures()==null) + Vector uprefs = jalview.util.DBRefUtils.selectRefs(sequence.getDBRef(), new String[] { "Uniprot"}); + if (uprefs!=null) { + // we know the id for this entry, so don't note its ID in the unknownSequences list + for (int j=0,k=uprefs.size(); j