Features now array
authoramwaterhouse <Andrew Waterhouse>
Fri, 24 Feb 2006 11:40:07 +0000 (11:40 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 24 Feb 2006 11:40:07 +0000 (11:40 +0000)
src/jalview/analysis/SeqsetUtils.java

index 40869c2..61f10b5 100755 (executable)
@@ -49,7 +49,7 @@ public class SeqsetUtils
     sqinfo.put("Name", seq.getName());\r
     sqinfo.put("Start", new Integer(seq.getStart()));\r
     sqinfo.put("End", new Integer(seq.getEnd()));\r
-    sqinfo.put("SeqFeatures", (seq.getSequenceFeatures() !=null) ? seq.getSequenceFeatures() : new Vector());\r
+    sqinfo.put("SeqFeatures", (seq.getSequenceFeatures() !=null) ? seq.getSequenceFeatures() : null);\r
     sqinfo.put("PdbId",\r
                (seq.getPDBId() != null) ? seq.getPDBId() : new Vector());\r
     sqinfo.put("datasetSequence", (seq.getDatasetSequence() !=null) ? seq.getDatasetSequence() : new Sequence("THISISAPLACEHOLDER",""));\r
@@ -71,7 +71,7 @@ public class SeqsetUtils
     String oldname = (String) sqinfo.get("Name");\r
     Integer start = (Integer) sqinfo.get("Start");\r
     Integer end = (Integer) sqinfo.get("End");\r
-    java.util.Vector sfeatures = (java.util.Vector) sqinfo.get(\r
+    SequenceFeature [] sfeatures = (SequenceFeature[]) sqinfo.get(\r
         "SeqFeatures");\r
     Vector pdbid = (Vector) sqinfo.get("PdbId");\r
     Sequence seqds = (Sequence) sqinfo.get("datasetSequence");\r
@@ -94,7 +94,7 @@ public class SeqsetUtils
       sq.setEnd(end.intValue());\r
     }\r
 \r
-    if ((sfeatures != null) && (sfeatures.size()>0))\r
+    if ((sfeatures != null) && (sfeatures.length>0))\r
     {\r
       sq.setSequenceFeatures(sfeatures);\r
     }\r