Skip to content
Prev 14671 / 21312 Next

[Bioc-devel] Merging GInteraction/GenomicInteractions ranges

If you're already in C++, then life is easy. Just compute the minimum
bounding box within each run of interactions (if you want empirical
bounds) or compute the theoretical bounds based on the bin widths and
offsets. Collect all of these ranges and report them at the end of the
function to construct a new G(enomic)Interactions object.

Note that the theoretical bounds will be better at leveraging the
memory-saving internal structure of the GInteractions object, as it is
more likely that the anchor regions will be shared between different
bin pairs at the same height of the tree. With empirical bounds, this
is unlikely to be the case.
If you're constructing the quad-tree using the recursive algorithm
discussed below, mapping is trivial. At each step of the recursion, you
pass the identity of the parent interaction and record it for each new
child interaction that is generated.

-A