-
Notifications
You must be signed in to change notification settings - Fork 446
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
Make repeated seeks possible #1363
Conversation
This fixes the reported seeking bug, but I'm worried that it might have odd interactions with the |
I just force-pushed a fix to that, now also |
I thought of that as a fix, but I'm not sure if it's enough as while it stops |
You are right. After a seek it will now behave as if this was the first region at the chromosome and will trigger the callback. I don't know what the right behavior should be. Since it is not used anymore, maybe we just let be for now and wait until a real world use case comes? |
I'd be inclined to just disable it for the |
Or just call |
No, calling |
I don't understand. The current code is broken, therefore keeping the current behavior should not be appropriate. Trying to use the code with |
Compiling the library with |
Repeated seeks with implicitly created region list wouldn't initialize all internal structures to the original clean state, as demonstrated by the issue samtools#1362, resolved by this commit
Okay, I modified it using a wrapper around a static function. |
Looks OK now, thanks. |
Repeated seeks with implicitly created region list wouldn't initialize all internal structures to the original clean state, as demonstrated by the issue #1362, resolved by this commit