bigdatagenomics/adam — pull request #247 by arahuja (2014-05-27 17:39:44+00:00)
Title: For #244, Fragments were incorrect order and incomplete

There were two issues here:
1) the fragments were indexed in the wrong order (the list by generated by placing the NEXT fragment at the front of the list and giving that index 0.
2) Only the first fragment was taken off on each addition (assuming that the sequence string was not more than 2x fragment length) If it was the rest of the sequence would not taken off until the next sequence was adding making the last sequence very long and >> maxFragmentLength possibly.