Minimap2: Soft-clipping at contig ends

Created on 10 Aug 2018  路  5Comments  路  Source: lh3/minimap2

Hi Heng Li,

I'm trying to find long-reads whose primary alignment overhangs the end of a contig, and that might provide useful information to extend the contig or bridge two split contigs. I see that mm2 supports soft clipping in supplementary alignments, but I am wondering how it will handle reads where the best match potentially has a large fraction of its length dangling off a contig end?

Are there any other settings that you would advise tweaking to help recover these kinds of reads?

Thanks for your help.

question

Most helpful comment

@Adamtaranto samclip might be useful for you (maybe)
https://github.com/tseemann/samclip

All 5 comments

how it will handle reads where the best match potentially has a large fraction of its length dangling off a contig end?

That is just soft clip.

@Adamtaranto samclip might be useful for you (maybe)
https://github.com/tseemann/samclip

Thanks, @tseemann ! I'll give it a try.

Update: In case anyone needs to fish out Minimap2 alignments that are soft-clipped at contig ends, I've written a tool called Teloclip to do just that.

It also includes an option to test reads for telomeric repeat motifs.

That README.md looks very familiar @Adamtaranto :-P

Was this page helpful?
0 / 5 - 0 ratings