[Biojava-l] Sequence Iteration in BioJava(x)

Mark Fortner m.fortner at sbcglobal.net
Thu Dec 15 16:55:11 EST 2005


I'm looking for the best way to iterate through all
nmers within a given sequence.  For example, given a
sequence that looks like this:

ACTGACTGACTG

If I extract all trimers from this I should get:

ACT
CTG
TGA
GAC
ACT
CTG
TGA
GAC
ACT
CTG

Is there an existing class that will allow me to
iterate through a sequence this way, or am I on my
own?

Regards,

Mark Fortner



More information about the Biojava-l mailing list