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

Mention in man page that CIGAR strings in SA tags are approximate #1213

Merged
merged 2 commits into from
May 22, 2024

Conversation

fedarko
Copy link
Contributor

@fedarko fedarko commented May 18, 2024

As documented in #724, the CIGAR strings used to describe supplemental alignments in the SA tags produced by minimap2 are approximate—for example, a CIGAR string of 23M 1I 537M 1I 64M 1I 512M 5180H for an alignment is turned into 1136M 3I 5180S when this alignment is represented within a SA tag.

This property of SA tags is currently undocumented, both in minimap2's code and in the SAM optional fields specification. As far as I can tell, multiple people have been confused by this over the years (#724, #524, #406, #287, eldariont/svim#5).

To rectify this issue, this PR adds a short line to minimap2's man page mentioning that CIGAR strings are approximate. I'd also be happy to add an entry in the FAQ describing this issue, but I think just updating the man page (which is where the README says to check for "detailed description of minimap2 command line options and optional tags") should be sufficient for now.

This PR also fixes an unrelated small typo in the FAQ (impriciseimprecise).

@lh3 lh3 merged commit 69e3629 into lh3:master May 22, 2024
1 check passed
@lh3
Copy link
Owner

lh3 commented May 22, 2024

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants