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

Bug fix to the pileup constructor. #1127

Merged
merged 1 commit into from Aug 26, 2020

Conversation

jkbonfield
Copy link
Contributor

We call constructor and destructor for each new bam object that is added to and removed from the pileup. Pileup also takes its own copy of the bam1_t struct as sam_read1 loops may be using the same structure over and over again.

However the constructor was called with the passed in bam1_t instead of pileups own copy of it (unlike destructor). Hence anything the constructor attempts to cache, such as the location of an aux tag, may get written over.

We call constructor and destructor for each new bam object that is
added to and removed from the pileup.  Pileup also takes its own copy
of the bam1_t struct as sam_read1 loops may be using the same
structure over and over again.

However the constructor was called with the passed in bam1_t instead
of pileups own copy of it (unlike destructor).  Hence anything the
constructor attempts to cache, such as the location of an aux tag,
may get written over.
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.

None yet

2 participants