[Biojava-dev] Changes to Sequence in BioJava3

Andy Yates ayates at ebi.ac.uk
Wed Nov 3 17:35:24 UTC 2010


getInverse() hey ... I like that :).

I think we have a winner :)

On 3 Nov 2010, at 17:30, George Waldon wrote:

> On Wed, Nov 3, 2010 at 9:56 AM, Andy Yates 
> A simple suggestion, I google that some people use inverse for reverse complement, so, maybe you can use getInverse() which would return the reverse sequence for polypeptides and the reverse complement for nucleotide sequences while still having the 3 methods getReverse(), getComplement() and getReverseComplement() in DNASequence? 
> 
> - George
> 
> <ayates at ebi.ac.uk> wrote:
> 
>    Indeed this was the set of methods available on DNASequence. What I wanted to avoid was a situation which we had originally with getSequenceAsString(Integer,Integer,Strand) where the method was available but was unimplemented for a given set of Sequences; it made using the API into russian roulette :)
> 
>    A new name for this "uber-reverse" would be good ... any recommendations? I can push the other methods back out into DNASequence easily

-- 
Andrew Yates                   Ensembl Genomes Engineer
EMBL-EBI                       Tel: +44-(0)1223-492538
Wellcome Trust Genome Campus   Fax: +44-(0)1223-494468
Cambridge CB10 1SD, UK         http://www.ensemblgenomes.org/








More information about the biojava-dev mailing list