}\r
continue;\r
}\r
-\r
+ String seqId="";\r
while (st.hasMoreElements())\r
{\r
\r
{\r
// Still possible this is an old Jalview file,\r
// which does not have type colours at the beginning\r
- token = st.nextToken();\r
- seq = align.findName(token, true);\r
+ seqId = token = st.nextToken();\r
+ seq = align.findName(seqId, true);\r
if (seq != null)\r
{\r
desc = st.nextToken();\r
}\r
\r
seq.addSequenceFeature(sf);\r
-\r
+ while ((seq=align.findName(seq, seqId, true))!=null)\r
+ {\r
+ seq.addSequenceFeature(new SequenceFeature(sf));\r
+ }\r
break;\r
}\r
}\r
\r
if (!token.equals("ID_NOT_SPECIFIED"))\r
{\r
- seq = align.findName(token, true);\r
+ seq = align.findName(seqId=token, true);\r
st.nextToken();\r
}\r
else\r
{\r
+ seqId=null;\r
try\r
{\r
index = Integer.parseInt(st.nextToken());\r
\r
sf = new SequenceFeature(type, desc, "", start, end, featureGroup);\r
\r
- seq.addSequenceFeature(sf);\r
-\r
if (groupLink != null && removeHTML)\r
{\r
sf.addLink(groupLink);\r
\r
parseDescriptionHTML(sf, removeHTML);\r
\r
+ seq.addSequenceFeature(sf);\r
+\r
+ while (seqId!=null && (seq=align.findName(seq, seqId, false))!=null)\r
+ {\r
+ seq.addSequenceFeature(new SequenceFeature(sf));\r
+ }\r
// If we got here, its not a GFFFile\r
GFFFile = false;\r
}\r