From: amwaterhouse Date: Fri, 28 Jul 2006 11:08:11 +0000 (+0000) Subject: output source in gff file X-Git-Tag: Release_2_1~173 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b1314f2aa829a8ccbb1816c6254c28f988967154;p=jalview.git output source in gff file --- diff --git a/src/jalview/io/FeaturesFile.java b/src/jalview/io/FeaturesFile.java index d7c3775..7299628 100755 --- a/src/jalview/io/FeaturesFile.java +++ b/src/jalview/io/FeaturesFile.java @@ -173,7 +173,17 @@ public class FeaturesFile extends AlignFile catch (Exception ex) {} - seq.getDatasetSequence().addSequenceFeature(sf); + if(st.hasMoreTokens()) + { + StringBuffer attributes = new StringBuffer(); + while (st.hasMoreTokens()) + { + attributes.append("\t"+st.nextElement()); + } + sf.setValue("ATTRIBUTES", attributes.toString()); + } + + seq.addSequenceFeature(sf); break; } @@ -403,6 +413,7 @@ public class FeaturesFile extends AlignFile { StringBuffer out = new StringBuffer(); SequenceFeature [] next; + String source; for(int i=0; i