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

Add SAM recommendation of MAPQ=0 for unmapped reads #753

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jkbonfield
Copy link
Contributor

We already have a recommendation that MAPQ of 255 should not be used. Expand on this to recommend zero is used when unmapped.

This is purely a recommendation, made for maximum compatibility, and not a specification requirement.

Fixes #727

We already have a recommendation that MAPQ of 255 should not be used.
Expand on this to recommend zero is used when unmapped.

This is purely a recommendation, made for maximum compatibility, and
not a specification requirement.

Fixes samtools#727
@jkbonfield jkbonfield added the sam label Jan 29, 2024
Copy link

Changed PDFs as of 79f2380: SAMv1 (diff).

github-actions bot pushed a commit that referenced this pull request Jan 29, 2024
@zaeleus
Copy link

zaeleus commented Feb 27, 2024

Should this be further constrained to unmapped records with missing mapping qualities? That is, recommend using 0 instead of 255. Otherwise, is this recommending that all unmapped records have their mapping qualities reset to 0?

@jkbonfield
Copy link
Contributor Author

Is there any value in another mapping quality? By definition, if it's not mapped, the mapping quality doesn't make sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: To do (backlog)
Development

Successfully merging this pull request may close these issues.

sam: Consider recommending using 0 for mapping quality when record is unmapped
3 participants