Calculate the distance between bait and the other end
Source:R/distance.R
pairdist-linkSet-method.Rd
Outputs an integer vector specifying the distance between the interacting bins, depending on the type of distance specified.
Example:
rangeA: |---------|
rangeB: |---------|
mid: <----------->
gap: <-->
span: <----------------------->
mid: Half the distance between the end of first range and start of second range
gap: Distance between the end of first range and start of second range
span: Total span from start of first range to end of second range
Examples
data(linkExample)
linkExample <- pairdist(linkExample, type="mid")
#> Error: unable to find an inherited method for function ‘pairdist’ for signature ‘x = "linkSet"’