"transformToGenome"(data, space.skip = 0.1, chr.weight
= NULL)
"transformToGenome"(data, space.skip = 0.1,
chr.weight = NULL)
"transformToArch"(data, width = 1)
transformToCircle(data, x = NULL, y = NULL, ylim = NULL, radius = 10, trackWidth =10, direction = c("clockwise", "anticlockwise"), mul = 0.05)
transformToRectInCircle(data, y = NULL, space.skip = 0.1, trackWidth = 10, radius = 10, direction = c("clockwise", "anticlockwise"), n = 100, mul = 0.05, chr.weight = NULL)
transformToBarInCircle(data, y = NULL, space.skip = 0.1, trackWidth = 10, radius = 10, direction = c("clockwise", "anticlockwise"), n = 100, mul = 0.05, chr.weight = NULL)
transformToSegInCircle(data, y = NULL, space.skip = 0.1, trackWidth = 10, radius = 10, direction = c("clockwise", "anticlockwise"), n = 100, chr.weight = NULL)
transformToLinkInCircle(data, linked.to, space.skip = 0.1, trackWidth = 10, radius = 10, link.fun = function(x, y, n = 100) bezier(x, y, evaluation = n), direction = c("clockwise", "anticlockwise"), chr.weight = NULL)
transformDfToGr(data, seqnames = NULL, start = NULL, end = NULL, width = NULL, strand = NULL, to.seqnames = NULL, to.start = NULL, to.end = NULL, to.width = NULL, to.strand = NULL, linked.to = to.gr)
"transformToDf"(data)
is_coord_genome(data)
GRanges
object. for function transformDfToGr
it's data.frame.
expand_range
function, to control
margin of y in the track.
GRanges
object, indicate the linked line's
end point which represented as a GRanges
too..
NULL
use "seqnames".
NULL
use "start".
NULL
use "end".
NULL
use "width".
NULL
use "strand".
NULL
, create GRanges without new GRanges attached as column. If
this varialbe is not NULL
, this mean you try to parse linked
GRanges
object.
NULL
use "to.start".
NULL
use "to.end".
NULL
use "to.width".
NULL
use "to.strand" or just use *.
GRanges
object, with calculated new variables, including
".circle.x" for transformed x position, ".circle.y" for transformed y
position, ".circle.angle" for transformed angle.
library(biovizBase)
library(GenomicRanges)
set.seed(1)
gr1 <- GRanges("chr1", IRanges(start = as.integer(runif(20, 1, 2e9)),
width = 5))
gr2 <- GRanges("chr2", IRanges(start = as.integer(runif(20, 1, 2e9)),
width = 5))
gr <- c(gr1, gr2)
gr.t <- transformToGenome(gr, space.skip = 0.1)
is_coord_genome(gr.t)
transformToCircle(gr.t)
transformToRectInCircle(gr)
transformToSegInCircle(gr)
values(gr1)$to.gr <- gr2
transformToLinkInCircle(gr1, linked.to = "to.gr")
Run the code above in your browser using DataLab