Skip to content

Commit c7cd590

Browse files
committed
add single-end mapped read to proper cluster
1 parent 122e64f commit c7cd590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gencore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ void Gencore::createCluster(map<int, map<int, map<int, Cluster*>>>& clusters, in
306306
void Gencore::addToCluster(bam1_t* b) {
307307
mPreStats->addRead(b->core.l_qseq, BamUtil::getED(b));
308308
// unproperly mapped
309-
if(b->core.isize == 0) {
309+
if(b->core.tid < 0) {
310310
addToUnProperCluster(b);
311311
} else {
312312
addToProperCluster(b);

0 commit comments

Comments
 (0)