Skip to content

Commit fd17060

Browse files
committed
Remove qs and qq tags after the clipped sequence has been reinserted
1 parent 05ee156 commit fd17060

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/biobambam/ClipReinsert.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ bool clipReinsert(
2727
std::stack < libmaus::bambam::cigar_operation > & hardstack
2828
)
2929
{
30+
libmaus::bambam::BamAuxFilterVector auxfilter;
31+
auxfilter.set("qs");
32+
auxfilter.set("qq");
33+
3034
uint64_t const numaux = algn.enumerateAuxTags(auxtags);
3135
for ( uint64_t i = 0; i < numaux; ++i )
3236
bafv.set(auxtags[i].first,auxtags[i].second);
@@ -86,6 +90,8 @@ bool clipReinsert(
8690
algn.replaceSequence(read + qs, qual + qq);
8791
else
8892
algn.replaceSequence( libmaus::fastx::reverseComplementUnmapped(qs) + read, std::string(qq.rbegin(),qq.rend()) + qual);
93+
94+
algn.filterOutAux(auxfilter);
8995
}
9096

9197
for ( uint64_t i = 0; i < numaux; ++i )

0 commit comments

Comments
 (0)