Skip to content

Fix a bug in mpileup -a and ref bases.#2019

Merged
vasudeva8 merged 1 commit into
samtools:developfrom
jkbonfield:mpileup_a_2018
Apr 9, 2024
Merged

Fix a bug in mpileup -a and ref bases.#2019
vasudeva8 merged 1 commit into
samtools:developfrom
jkbonfield:mpileup_a_2018

Conversation

@jkbonfield

Copy link
Copy Markdown
Contributor

When specifying -f ref.fa to report the reference and using the "-a" option, once we hit the end of one reference and before proceeding to then ext we report all remaining positions in that reference. However we had already loaded the next reference sequence up, so the bases reported were wrong.

It's been this way since 2016 when the -a option was added in b4e452c. So I am assuming the fact it's taken 8 years to be spotted means this is pretty rare for this to affect people (given it only changes locations after the alignments have finished).

Fixes #2018

When specifying -f ref.fa to report the reference and using the "-a"
option, once we hit the end of one reference and before proceeding to
then ext we report all remaining positions in that reference.  However
we had already loaded the next reference sequence up, so the bases
reported were wrong.

It's been this way since 2016 when the -a option was added in b4e452c.
So I am assuming the fact it's taken 8 years to be spotted means this
is pretty rare for this to affect people (given it only changes
locations after the alignments have finished).

Fixes samtools#2018
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.

mpileup returns different reference sequence for different bam given same input bed and fasta

2 participants