[Biojava-l] GFFEntrySet question

Lachlan Coin lc1@sanger.ac.uk
Mon, 1 Jul 2002 18:05:19 +0100 (BST)


In GFFEntrySet, the annotate() method within the getAnnotator() method
sets the annotation of the Feature template to EMPTY_ANNOTATION.
There is often extra information in the GFFRecord object, which would be
useful to transfer to the sequence annotation, but this is lost at the
moment.  Would it make more sense to write something like:

Map attr = rec.getGroupAttributes();
Iterator keys = attr.keySet().iterator();
while(keys.hasNext()){
    Object key = keys.next();
    plain.annotation.setProperty(key,attr.get(key));
}


instead of:


plain.annotation = Annotation.EMPTY_ANNOTATION;



Thanks,

Lachlan