From: gmungoc Date: Tue, 16 May 2017 08:40:39 +0000 (+0100) Subject: JAL-2505 set SequenceFeature group in constructor X-Git-Tag: Release_2_10_3b1~276 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1535b810b4b1836e50226c044128ef3ee84b4b5a;p=jalview.git JAL-2505 set SequenceFeature group in constructor --- diff --git a/src/jalview/ws/dbsources/Uniprot.java b/src/jalview/ws/dbsources/Uniprot.java index 3afe8ec..4898b42 100644 --- a/src/jalview/ws/dbsources/Uniprot.java +++ b/src/jalview/ws/dbsources/Uniprot.java @@ -262,8 +262,9 @@ public class Uniprot extends DbSourceProxyImpl { for (SequenceFeature sf : entry.getFeature()) { - sf.setFeatureGroup("Uniprot"); - sequence.addSequenceFeature(sf); + SequenceFeature copy = new SequenceFeature(sf, sf.getBegin(), + sf.getEnd(), "Uniprot"); + sequence.addSequenceFeature(copy); } } for (DBRefEntry dbr : dbRefs)