I have bam files ~50Gb, which is read alignments onto a reference genome. now I want to extract some regions of alignment, but I found methods like samtools view -L region.bed all.bam
is too slow, usually taken more than 2 hours (even if very small region are submit)
Are there any other methods that can do this job faster?
Can you paste the header of your bam file (with
samtools view -H file.bam
)