Quantcast
Channel: Post Feed
Viewing all articles
Browse latest Browse all 3764

Samtools or Bedtools: How to filter a bam file with a bed file using strand information

$
0
0

Hi

I would like to filter a bam file, keeping only reads overlapping with genomic intervals from a bed file. I used samtools for this:

samtools view -b -h -L bedfile.bed bamfile.bam 

However the -L option does not seem to take into account the strand information.

Do you know if there is another option or way to do it that would keep strand information?

 


Viewing all articles
Browse latest Browse all 3764

Trending Articles