Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better handling of complex indel situations #143

Open
bwlang opened this issue Dec 27, 2021 · 3 comments
Open

better handling of complex indel situations #143

bwlang opened this issue Dec 27, 2021 · 3 comments

Comments

@bwlang
Copy link

bwlang commented Dec 27, 2021

SARS-CoV-2 omicron commonly has a 3 base deletion followed by 8 bp of normal sequence then a 9 bp insertion in the S gene.
This is a tough, but relevant alignment situation. Lots of omicron consensus sequences are wrong as a result of bwa-mem soft-clipping if this region is near the end of a read. Snap is pretty similar to bwa-mem... aligning a few more reads , but still missing most of the insertions.
snap: 259 ins / 671 total
bwa-mem: 242 ins / 638 total

About 2/3 of those look "practical" to align to me. Maybe it would be good to penalize alignments that cause frameshifts more than those that don't (in this case both indels are a multiple of 3 bp).

Any chance this can be improved? Maybe some setting adjustments?

image

Reads are available via SRA: https://www.ncbi.nlm.nih.gov/sra/SRR17132492

@bwlang
Copy link
Author

bwlang commented Jan 3, 2022

@bolosky : I think you mentioned that you might be interested in this...
Just a quick update. I examined BA.1 GISAID sequences in this region recently. Thousands of genomes in GISAID are missing the insertion. Most of those are also missing or substituting Ns for the 3bp deletion too. I think consensus generation tools would have a much easier time if the read stacks were more consistent. I suspect that most actually do contain these structural features but it will be very hard to tell if the genome is shifting in this area with current consensus data.

@kokyriakidis
Copy link

@bwlang What's your general impression regarding indel representation between bwa and snap2? Do you think that snap does a better job? Have you found other cases that on mapper performs better than the other?

@bwlang
Copy link
Author

bwlang commented May 31, 2022

@kokyriakidis : I think they are pretty similar... but the situation could be improved with an option to consider framing (i.e. 3bp deletions are less penalized than 2 or 4 base deletions).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants