Compute the distance between interacting regions on the linear genome, for each pairwise interaction contained in a GInteractions or InteractionSet object.
1 2 3 4 5 6 7 8 9
A GInteractions or InteractionSet object.
A character string specifying the type of distance to compute.
Can take values of
For each interaction in
pairdist method computes the distance between the two interacting regions.
An integer vector is returned, with values computed according to the specified value of
The distance between the midpoints of the two regions (rounded down to the nearest integer) is returned.
The length of the gap between the closest points of the two regions is computed - negative lengths are returned for overlapping regions, indicating the length of the overlap.
The distance between the furthermost points of the two regions is computed.
The difference between the anchor indices is returned.
This corresponds to a diagonal on the interaction space when bins are used in the
regions slot of
Interchromosomal interactions are marked with
type="intra", a logical vector is returned indicating whether the interaction occurs between two regions on the same chromosome.
intrachr(x) is an alias for
The return values of the assorted methods are the same for both GInteractions and InteractionSet objects.
Methods for the latter operate on the GInteractions object in the
An integer or logical vector of distances.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.