BLASR: How to subsample alignments from a region
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?
• 2,827 views
•
link
1 answer
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.
• 0 views
•
link
Log in to answer this question.
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