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

Support for CIGAR strings containing X and = ops #71

Open
mbabadi opened this issue Aug 29, 2021 · 1 comment
Open

Support for CIGAR strings containing X and = ops #71

mbabadi opened this issue Aug 29, 2021 · 1 comment

Comments

@mbabadi
Copy link

mbabadi commented Aug 29, 2021

New feature

Add support for CIGAR strings containing X and =. These are allowed in SAM specs v1.4, though, ggsashimi neglects all such reads.

Usage scenario

It is not uncommon to come across .bam files that containg X and = ops in the CIGAR strings. For instance, running minimap2 with --eqx arguments generates such cigar strings. In such cases, ggsashimi throws away all alignments and produces an empty plot without producing an informative error message.

Suggest implementation

As a simple implementation, one can replace all X and = with M and merge tandem M ops if needed. I have tried this workaround and it works well.

@emi80
Copy link
Member

emi80 commented Sep 8, 2021

Hi @mbabadi,
thanks for reporting this. We will definitely have a look at these CIGAR ops and let you know.

Best,
Emilio

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

No branches or pull requests

3 participants