How to extract specific location in .bam files
1
0
Entering edit mode
3.0 years ago

I would like to make a minimal example of my wgs .bam and .bam.bai files to accelerate pipeline testing. For example, i would like to select chr1:1-1e7 & chr1:1-1e7 regions and create that same .bam .bai file from them. How to accomplish that?

bam • 577 views
ADD COMMENT
2
Entering edit mode
3.0 years ago
GenoMax 147k

Using samtools view : Extract Reads From A Bam File That Fall Within A Given Region Check help page for samtools view for detailed options.

ADD COMMENT

Login before adding your answer.

Traffic: 1796 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