Skip to content

Don't use consensus N for "*" calls that are of insufficient depth.#2204

Merged
whitwham merged 1 commit into
samtools:developfrom
jkbonfield:consensus-N
Apr 7, 2025
Merged

Don't use consensus N for "*" calls that are of insufficient depth.#2204
whitwham merged 1 commit into
samtools:developfrom
jkbonfield:consensus-N

Conversation

@jkbonfield

Copy link
Copy Markdown
Contributor

The intention of the -d depth parameter is to only call a base when we have sufficient confidence in the number of observations to call the base type. If it's insufficient depth then we call N. However this is an assertion that there is a base, we just don't wish to say which.

A column with mostly "*" (absent) and one single base (eg an overcall error) should not be changed to N even when the depth is low as this is asserting there is a base of some description there, which is unlikely.

Fixes #2167

The intention of the -d depth parameter is to only call a base when we
have sufficient confidence in the number of observations to call the
base type.  If it's insufficient depth then we call N.  However this
is an assertion that there is a base, we just don't wish to say which.

A column with mostly "*" (absent) and one single base (eg an overcall
error) should not be changed to N even when the depth is low as this
is asserting there is a base of some description there, which is
unlikely.

Fixes samtools#2167
@whitwham whitwham merged commit 4750e15 into samtools:develop Apr 7, 2025
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.

Samtools consensus --min-depth option produces longer sequence

2 participants