Skip to content

conditional merge based on unrelated intervals? #10

@marade

Description

@marade

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions