bwa mem without -M option how to continue using picard
2
0
Entering edit mode
6.6 years ago
Peter Chung ▴ 210

I do the alignment without -M option and now I have all the bam file and would like to do the downstream steps using picard and GATK, what can I do to restore the -M option except realign all the fastq because I have more than hundreds fastq files. Thank you

sequencing assembly sequence • 1.9k views
ADD COMMENT
0
Entering edit mode
6.6 years ago
d-cameron ★ 2.9k

This can be achieved with software that can edit SAM files (such as samtools and sambamba)

You want to set the secondary alignment flag (0x100) for all reads that have the supplementary alignment flag set. (0x800).

ADD COMMENT
0
Entering edit mode
6.6 years ago

Is it still the case that picard (MarkDuplicates?) chokes on split reads? I would check that first. Using -M option is a hack to make picard work but it would be better avoiding it since the shorter split of a read is not a "secondary alignment" and there is nothing necessarily wrong with split reads. They may be the result of structural variants.

ADD COMMENT

Login before adding your answer.

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