Skip to content

Commit 2ac77fe

Browse files
committed
enable SE small InDel discovery
1 parent c60c09a commit 2ac77fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/delly.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ inline int run(Config const& c, TSVType svType) {
14771477
bam1_t* rec = bam_init1();
14781478
while (sam_itr_next(samfile[file_c], iter, rec) >= 0) {
14791479
if (rec->core.flag & (BAM_FSECONDARY | BAM_FQCFAIL | BAM_FDUP | BAM_FSUPPLEMENTARY | BAM_FUNMAP)) continue;
1480-
if ((rec->core.qual < c.minMapQual) || (rec->core.tid<0) || (rec->core.mtid<0)) continue;
1480+
if ((rec->core.qual < c.minMapQual) || (rec->core.tid<0)) continue;
14811481

14821482
// Small indel detection using soft clips
14831483
if ((c.indels) && (_smallIndelDetection(svType))) {
@@ -1558,7 +1558,7 @@ inline int run(Config const& c, TSVType svType) {
15581558
// Paired-end clustering
15591559
if (rec->core.flag & BAM_FPAIRED) {
15601560
// Mate unmapped
1561-
if (rec->core.flag & BAM_FMUNMAP) continue;
1561+
if ((rec->core.mtid<0) || (rec->core.flag & BAM_FMUNMAP)) continue;
15621562

15631563
// Mapping positions valid?
15641564
if (_mappingPos(rec->core.tid, rec->core.mtid, rec->core.pos, rec->core.mpos, svType)) continue;

0 commit comments

Comments
 (0)