]> git.donarmstrong.com Git - bamtools.git/commit - src/toolkit/bamtools_sort.cpp
Implemented better coupling of unmapped reads with mates during sorting
authorderek <derekwbarnett@gmail.com>
Tue, 14 Jun 2011 17:41:56 +0000 (13:41 -0400)
committerderek <derekwbarnett@gmail.com>
Tue, 14 Jun 2011 17:41:56 +0000 (13:41 -0400)
commit4dd0470141b23c771607cceb1e0b3e0e7cd51ca1
tree04138cb41415121a51af66247beed86a460da47b
parentf3a8da2a83a6412f3f25269af09bdfb9b1014e02
Implemented better coupling of unmapped reads with mates during sorting
(assuming assigned same coordinates)
 * Used std::stable_sort instead of std::sort, to preserve order
 * Add checks at buffer boundary to keep mates from being split into
different temp files. This makes the buffer boundary "softer", but in
practice, shouldn't differ much if at all.
src/toolkit/bamtools_sort.cpp