[Biojava-l] Reverse translation

Matthew Pocock matthew_pocock@yahoo.co.uk
Thu, 28 Nov 2002 12:19:50 +0000 (GMT)


 --- Thomas Down <td2@sanger.ac.uk> wrote: > Hi...
> 
> I've just received a query (by direct mail from
> someone who's
> having trouble subscribing to the list -- I'll look
> into that)
> asking if it's possible to obtain the set of
> possible codons
> It seems to
> me that
> this could be handled quite nicely by making the
> GeneticCode
> translation tables ReversibleTranslationTables, and
> having
> the untranslate method return an ambiguity symbol
> over
> possible codons.  Would anyone have any objetion to
> me implementing
> this?

Go for it.

> 
> Of course, if we were to do this, it makes me wonder
> if we actually
> need to differentiate between TranslationTable and 
> ReversibleTranslationTable at all.  Possibly we
> could just
> make ReversibleTranslationTable a marker interface
> to guarantee
> that untranslate(AtomicSymbol) will return another
> AtomicSymbol.
> Any thoughts?  Or is it to late to make a change
> like this?
> 

Initialy, I was assuming that TranslationTable was
injective and ReversibleTranslationTable was
bijective.  Of course, you could move the reverse
translation method from Reversible... to Trans... and
just add javadocs to Reversible... that states it
should now be a bijective method.

>      Thomas.
> _______________________________________________
> Biojava-l mailing list  -  Biojava-l@biojava.org
> http://biojava.org/mailman/listinfo/biojava-l 

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com