[Biojava-l] Bug in FastaFormat.writeSequence()

Michael Muratet michael.muratet@invitrogen.com
Tue, 23 Oct 2001 11:44:46 -0500


Greetings

I can't belive I'm the first to find this, but I don't recall having
seen it before--so here goes...

At line 197 of FastaFormat.java, the upper bound of the for loop
variable is less-than-or-equals the sequence length plus 1. This will
try to print a spurious line when the sequence length is an exact
multiple of the line length, e.g.,

	1  ..  60
       61  .. 120
           |
      300  .. 360
      361  .. 360	wrecks havoc on sublist methods

I've made the test a strict inequality and it works.



Mike

-- 
Michael A. Muratet
Senior Software Engineer
Bioinformatics
ResGen, Invitrogen Corp.
(800) 533-4363 x74431
(256) 539-4086 FAX