How to remove specifically non aligned regions
1
0
Entering edit mode
8.2 years ago

Hi all,

I would like to select a specific region from a fastq file (all read matching this region) and if they exceed the reference, trim only the non matching regions. I've done a bwa alignment and generated sam file but I'm not sure how remove the regions that are not matching to the reference without removing all the read

Thanks for your help!

alignment sequencing genome • 1.5k views
ADD COMMENT
1
Entering edit mode
8.2 years ago
Brice Sarver ★ 3.8k

You'll want to subset the BAM based on the region you want. This can be done easily with samtools.

Check out this Biostars post: Extract Reads From A Bam File That Fall Within A Given Region

ADD COMMENT

Login before adding your answer.

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