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.indexThe name (index) for the sector
sector.numeric.indexNumeric index for the sector
track.indexNumeric index for the track
xlimMinimal and maximal values on the x-axis
ylimMinimal and maximal values on the y-axis
xrangeRange of xlim. It equals to xlim[2] - xlim[1]
yrangeRange of ylim
xcenterCenter of x-axis. It equals to (xlim[2] + xlim[1])/2
ycenterCenter of y-axis
cell.xlimMinimal and maximal values on the x-axis extended by cell paddings
cell.ylimMinimal and maximal values on the y-axis extended by cell paddings
xplotDegrees for right and left borders of the cell.
yplotRadius for top and bottom borders of the cell.
cell.start.degreeSame as xplot[1]
cell.end.degreeSame as xplot[2]
cell.bottom.radiusSame as yplot[1]
cell.top.radiusSame as yplot[2]
track.marginMargin for the cell
cell.paddingPadding 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.