{
int start = Integer.parseInt(gff[START_COL]);
int end = Integer.parseInt(gff[END_COL]);
- float score = Float.NaN;
+
+ /*
+ * default 'score' is 0 rather than Float.NaN as the latter currently
+ * disables the 'graduated colour => colour by label' option
+ */
+ float score = 0f;
try
{
score = Float.parseFloat(gff[SCORE_COL]);
} catch (NumberFormatException nfe)
{
- // e.g. '.' - leave as NaN to indicate no score
+ // e.g. '.' - leave as zero
}
SequenceFeature sf = new SequenceFeature(gff[TYPE_COL],
gff[SOURCE_COL], start, end, score, gff[SOURCE_COL]);
+ sf.setStrand(gff[STRAND_COL]);
+
+ sf.setPhase(gff[PHASE_COL]);
+
if (attributes != null)
{
/*
for (Entry<String, List<String>> attr : attributes.entrySet())
{
String values = StringUtils.listToDelimitedString(
- attr.getValue(), "; ");
+ attr.getValue(), ",");
sf.setValue(attr.getKey(), values);
if (NOTE.equals(attr.getKey()))
{