Gsnap: How To Output Only Alignments With Minimal Number Of Mismatches?
0
0
Entering edit mode
11.1 years ago
Herpson • 0

I am aligning paired-end ChIP-Seq data of drosophila transcription factors.

I would like to have a .sam file with the following alignments reported: - A maximum of three mismatches, i.e. three wrong bases (this is the option --max-mismatch=3) - But, if there are possible alignments with only one mismatch, and also possible alignments with two mismatches, I want only the alignments with one mismatch reported.

I thought -M 0 (same as --suboptimal-levels=0) would be my option, but it doesn't work. I think it works on the mapping quality field (i.e. MAPQ).

The --npaths=1 option doesn't do it for me as well, because it reports only one (the best) alignment, even if there are multiple possible alignments with the minimum number of mismatches.

I hope I stated my aim clearly. Does anyone know how I could obtain this specific subset of alignments? I fear I might have to resort to Python and code it up by myself, but want to make sure there is no easy solution available first.

alignment paired-end • 2.8k views
ADD COMMENT

Login before adding your answer.

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