[Biojava-dev] Changes to Sequence in BioJava3

George Waldon gwaldon at geneinfinity.org
Wed Nov 3 17:30:43 UTC 2010


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



More information about the biojava-dev mailing list