Description Usage Arguments Details References See Also Examples
Get the meta data of a cell
1 2 | get.cell.meta.data(name, sector.index = get.current.sector.index(),
track.index = get.current.track.index())
|
name |
Only support one name at a time, see "details" section |
sector.index |
Index of the sector |
track.index |
Index of the track |
The following meta information for a cell can be obtained:
sector.index
The name (index) for the sector
sector.numeric.index
Numeric index for the sector
track.index
Numeric index for the track
xlim
Minimal and maximal values on the x-axis
ylim
Minimal and maximal values on the y-axis
xrange
Range of xlim
. It equals to xlim[2] - xlim[1]
yrange
Range of ylim
xcenter
Center of x-axis. It equals to (xlim[2] + xlim[1])/2
ycenter
Center of y-axis
cell.xlim
Minimal and maximal values on the x-axis extended by cell paddings
cell.ylim
Minimal and maximal values on the y-axis extended by cell paddings
xplot
Degrees for right and left borders of the cell.
yplot
Radius for top and bottom borders of the cell.
cell.start.degree
Same as xplot[1]
cell.end.degree
Same as xplot[2]
cell.bottom.radius
Same as yplot[1]
cell.top.radius
Same as yplot[2]
track.margin
Margin for the cell
cell.padding
Padding for the cell
The function is useful when using panel.fun
in circos.track
to
get detailed information of the current cell.
Gu, Z. (2014) circlize implements and enhances circular visualization in R. Bioinformatics.
CELL_META
is a short version of get.cell.meta.data
.
1 2 3 4 5 6 7 | factors = letters[1:4]
circos.initialize(factors, xlim = c(0, 1))
circos.trackPlotRegion(ylim = c(0, 1), panel.fun = function(x, y) {
print(get.cell.meta.data("xlim"))
})
print(get.cell.meta.data("xlim", sector.index = "a", track.index = 1))
circos.clear()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.