Question: how to extract mapped reads from output of BWA-MEM to a separate file?
0
gravatar for jerrry113
2.5 years ago by
jerrry113 • 0
jerrry113 • 0 wrote:

Hello all,

By default, BWA-MEM on the main galaxy server does not seem to give an option to write the mapped or unmapped reads in an alignment run to its own separate file. Is there a utility available on Galaxy that I can use to parse through the BAM output for just the reads that aligned? Thanks!

  • Jerry
mapping bwa bwa-mem galaxy samtools • 1.7k views
ADD COMMENT • link • modified 2.4 years ago by y.hoogstrate • 460 • written 2.5 years ago by jerrry113 • 0
0
gravatar for y.hoogstrate
2.4 years ago by
y.hoogstrate • 460
Netherlands
y.hoogstrate • 460 wrote:

Hello Jerry,

Together with the bitwise flags given in this document: https://samtools.github.io/hts-specs/SAMv1.pdf and the tool "Filter SAM or BAM, output SAM or BAM files on FLAG MAPQ RG LN or by region (Galaxy Version 1.1.2)" you should be able to solve it. Good luck!

Youri

ADD COMMENT • link written 2.4 years ago by y.hoogstrate • 460
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 169 users visited in the last hour