Entering edit mode
3.5 years ago
maxrwjones
▴
60
Hi all,
I'm using bedtools intersect
for the first time and am wondering if it performs correctly when provided with an 'A' (query) file in BAM format (which has 0-based coordinates) and a 'B' (reference) file in GFF3 format (which has 1-based coordinates).
Does bedtools intersect automatically take this difference into account? i.e. can it re-coordinate one of the files on the fly to ensure intersects are accurate to nucleotide resolution?
Cheers!
Ah wonderful, good to know! Brilliant answer and thanks for the code / outputs to back it up.