From 173a7ca81c8d8c00f889fd4e3583cc8733d3d179 Mon Sep 17 00:00:00 2001 From: jprocter Date: Wed, 1 Mar 2006 16:23:15 +0000 Subject: [PATCH] fixed after refactoring of SequenceFeature[] seq.getSequenceFeatures --- src/jalview/analysis/SeqsetUtils.java | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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); } -- 1.7.10.2