JAL-2505 set SequenceFeature group in constructor
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 16 May 2017 08:40:39 +0000 (09:40 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 16 May 2017 08:40:39 +0000 (09:40 +0100)
src/jalview/ws/dbsources/Uniprot.java

index 3afe8ec..4898b42 100644 (file)
@@ -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)