[Biojava-dev] Annotation conversions

Matthew Pocock matthew_pocock at yahoo.co.uk
Mon Jan 12 12:59:29 EST 2004


Enum away. Use the type-safe enum design pattern?

Matthew

Len Trigg wrote:

>I just had another look at this. These are the ones I've seen that
>have simple one to one conversions. There may be more:
>
>Embl      Genbank
>CC        COMMENT
>OS        SOURCE
>OC        ORGANISM
>KW        KEYWORDS
>SV        VERSION
>DE        DEFINITION
>DT        MDAT
>
>There's probably some type of accession field.
>
>There's also OrganismParser.PROPERTY_ORGANISM that has bidirectional
>conversion with BioSQL taxon, and output as Embl OS/OC fields.
>
>I'm in favour of having a bunch of static properties (perhaps forming
>an enum) in the one place corresponding to each of these. That'd serve
>the immediate purpose of removing the error-prone duplication of
>checks, and we can get flash later if we want/need to. Shall I make it
>so?
>
>
>Cheers,
>Len.
>_______________________________________________
>biojava-dev mailing list
>biojava-dev at biojava.org
>http://biojava.org/mailman/listinfo/biojava-dev
>
>  
>




More information about the biojava-dev mailing list