Mention in man page that CIGAR strings in SA tags are approximate #1213
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 of23M 1I 537M 1I 64M 1I 512M 5180H
for an alignment is turned into1136M 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 (
impricise
→imprecise
).