From: jprocter Date: Wed, 1 Mar 2006 16:23:15 +0000 (+0000) Subject: fixed after refactoring of SequenceFeature[] seq.getSequenceFeatures X-Git-Tag: Root_VamJalview_2_07b+~86 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=173a7ca81c8d8c00f889fd4e3583cc8733d3d179;p=jalview.git fixed after refactoring of SequenceFeature[] seq.getSequenceFeatures --- diff --git a/src/jalview/analysis/SeqsetUtils.java b/src/jalview/analysis/SeqsetUtils.java index 61f10b5..691b905 100755 --- a/src/jalview/analysis/SeqsetUtils.java +++ b/src/jalview/analysis/SeqsetUtils.java @@ -49,7 +49,13 @@ public class SeqsetUtils sqinfo.put("Name", seq.getName()); sqinfo.put("Start", new Integer(seq.getStart())); sqinfo.put("End", new Integer(seq.getEnd())); - sqinfo.put("SeqFeatures", (seq.getSequenceFeatures() !=null) ? seq.getSequenceFeatures() : null); + Vector sfeat = new Vector(); + jalview.datamodel.SequenceFeature[] sfarray=seq.getSequenceFeatures(); + if (sfarray!=null && sfarray.length>0) { + for (int i=0;i0)) + if ((sfeatures != null) && (sfeatures.size()>0)) { - sq.setSequenceFeatures(sfeatures); + SequenceFeature[] sfarray = (SequenceFeature[]) sfeatures.toArray(); + sq.setSequenceFeatures(sfarray); } + if ((seqds!=null) && !(seqds.getName().equals("THISISAPLACEHOLDER") && seqds.getLength()==0)) { sq.setDatasetSequence(seqds); }