BLASR: How to subsample alignments from a region
1
0
Entering edit mode
9.0 years ago
shwethacm ▴ 240

Hello!

I have an alignment of ~20x PacBio long reads to my reference genome and I am trying to extract alignments within only a certain region, say 2mb-10mb (sort of like samtools view ) but I am not sure how to do this.

I have alignments in the m4 format.

I think I should be specifying a region table but I am not sure.

Can anybody help?

PacificBiosciences BLASR alignment PacBio • 2.4k views
ADD COMMENT
0
Entering edit mode

Thanks, rhall.

I did eventually parse it myself but I was looking to check if I could be lazy about it and do it quickly using a preexisting tool :)

Well, now I know!

Thanks a ton anyway.

Shwetha

ADD REPLY
0
Entering edit mode
9.0 years ago
rhall ▴ 160

I'm not aware of any software to process m4 files, but they are straightforward to parse with simple scripts, https://github.com/PacificBiosciences/blasr/wiki/Blasr-Output-Format. If you are more comfortable with sam format, blasr can output sam instead of m4, the -sam parameter.

ADD COMMENT

Login before adding your answer.

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