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

conditional merge based on unrelated intervals? #10

Open
marade opened this issue Jun 12, 2024 · 0 comments
Open

conditional merge based on unrelated intervals? #10

marade opened this issue Jun 12, 2024 · 0 comments

Comments

@marade
Copy link

marade commented Jun 12, 2024

Hi. Thanks for this excellent crate. I'm wanting to do a merge that is dependent on a second, unrelated set of intervals. If both the r- and q- intervals will merge, then go ahead, but if only one of them would merge, do nothing. I think this might be possible with ConditionalMergingIterator in granges, but I wonder how to condition on the second set of intervals? Is this possible?

Say we're merging ranges within a distance of 100:

Don't merge:
qstart qend rstart rend
2756014 2756066 54079 54131
55662 55787 54096 54221

Merge:
qstart qend rstart rend
54358 54543 54629 54814
54147 54332 54840 55025

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

No branches or pull requests

1 participant