Last chance! 50% off unlimited learning
Sale ends in
"pairdist"(x, type="mid")
"pairdist"(x, type="mid")
"intrachr"(x)
"intrachr"(x)
"mid"
, "gap"
, "span"
, "diag"
or "intra"
.
x
, the pairdist
method computes the distance between the two interacting regions.
An integer vector is returned, with values computed according to the specified value of type
:
"mid"
:
"gap"
:
"span"
:
"diag"
:regions
slot of x
.
Interchromosomal interactions are marked with NA
.
Alternatively, if 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 pairdist(x, type="intra")
.
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 interactions
slot.
GInteractions-class
,
InteractionSet-class
example(GInteractions, echo=FALSE)
pairdist(gi)
pairdist(gi, type="gap")
pairdist(gi, type="span")
pairdist(gi, type="diag")
intrachr(gi)
example(InteractionSet, echo=FALSE)
pairdist(iset)
pairdist(iset, type="gap")
pairdist(iset, type="span")
pairdist(iset, type="diag")
intrachr(iset)
Run the code above in your browser using DataLab