How to only keep read that cover a certain region
0
0
Entering edit mode
3.8 years ago
nbargues • 0

Hi, I have aligned ONT data with minimap2 with hg19 as reference.

Now I want to keep only the read that cover entirely a certain region.

I search certain tool like bedtools but didn't find the proper parameter. Any idea how to do that ?

Thanks

Assembly • 495 views
ADD COMMENT
1
Entering edit mode

Check samtools view. Provide a BED file of the region co-ordinates you are interested in.

-L FILE  only include reads overlapping this BED FILE [null]
ADD REPLY
0
Entering edit mode

It seems to work but I have zero read as output.

I try also this :

bedtools intersect -wa -F 1 -a FAN46998_minimap2_ont.bam -b region.bed > test_intersect.bam

Do you think it's a valid command for my problematic ?

ADD REPLY

Login before adding your answer.

Traffic: 1481 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6