ucsc.pos.diff: Method to determine the distance between two genomic regions...

Description Usage Value Author(s) Examples

Description

Method to determine the distance between two genomic regions in "ucsc.pos" format.

Usage

1
2
  ucsc.pos.diff(from, to,
    method = c("min", "start", "stop", "middle"))

Value

an integer, or Inf

Author(s)

Mark Cowley, 18/4/07

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
ucsc.pos.diff("chr9:1000-2000", "chr9:1500-2100", "min")
# [1] 0
ucsc.pos.diff("chr9:1000-2000", "chr9:1500-2100", "start")
# [1] 500
ucsc.pos.diff("chr9:1000-2000", "chr9:1500-2100", "stop")
# [1] 100
ucsc.pos.diff("chr9:1000-2000", "chr9:1500-2100", "middle")
# [1] 300
ucsc.pos.diff("chr9:1000-2000", "chr9:2100-2200", "min")
# [1] 100
ucsc.pos.diff("chr9:1000-2000", "chr9:2100-2200", "start")
# [1] 1100
ucsc.pos.diff("chr9:1000-2000", "chr9:2100-2200", "stop")
# [1] 200
ucsc.pos.diff("chr9:1000-2000", "chrX:2100-2200", "stop")
# [1] Inf

drmjc/genomics documentation built on May 15, 2019, 2:22 p.m.