private static final String NOTE = "Note";
- protected static final String FRAME = "FRAME";
-
protected static final String TAB = "\t";
protected static final String GFF_VERSION = "##gff-version";
return false;
}
+ /*
+ * experimental - add any dummy sequences with features to the alignment
+ * - we need them for Ensembl feature extraction - though maybe not otherwise
+ */
+ for (SequenceI newseq : newseqs)
+ {
+ if (newseq.getSequenceFeatures() != null)
+ {
+ align.addSequence(newseq);
+ }
+ }
return true;
}
out.append(strand == 1 ? "+" : (strand == -1 ? "-" : "."));
out.append(TAB);
- out.append(sf.getValue(FRAME, "."));
+ String phase = sf.getPhase();
+ out.append(phase == null ? "." : phase);
// miscellaneous key-values (GFF column 9)
String attributes = sf.getAttributes();
* replace parsed sequence with the realised forward reference
*/
includedseqs.set(p, dummyseq);
+
+ /*
+ * and remove from the newseqs list
+ */
+ newseqs.remove(dummyseq);
}
}