Description Usage Value Author(s) Examples
Method to determine the distance between two genomic regions in "ucsc.pos" format.
1 2 | ucsc.pos.diff(from, to,
method = c("min", "start", "stop", "middle"))
|
an integer, or Inf
Mark Cowley, 18/4/07
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.