anchors_filter_oob: Filter anchors that become out of bounds.

View source: R/methods_anchors.R

anchors_filter_oobR Documentation

Filter anchors that become out of bounds.

Description

Discards anchors for which a lookup will result in any lookup bins that are out of bounds.

Usage

anchors_filter_oob(IDX, anchors, rel_pos)

Arguments

IDX

The indices slot of a GENOVA contacts object.

anchors

A matrix with two columns containing pre-computed anchor indices. See the anchors documentation.

rel_pos

An integer vector indicating relative positions in bins, indicating ranges around anchors to lookup.

Details

The resulting matrix contains indices to the Hi-C matrix slot in the GENOVA experiment.

An index is considered out of bounds when that index plus the maximum, or minus the minimum, relative position would belong to a different chromosome.

Value

A anchors object with two columns in matrix format.

See Also

anchors.


robinweide/GENOVA documentation built on March 14, 2024, 11:16 p.m.