View source: R/RCircosChromosomeIdeogram.R
RCircos.ZoomIn.Chromosome | R Documentation |
Increase plot length for one or partial chromosome in order to plot more data points. This works on original chromosome ideogram data and should be done before set RCircos core components. Also, this function only work with one region each time. If there are more than one regions to be zoomed in, repeat this function for each region.
RCircos.ZoomIn.Chromosome(ideogram=NULL, chromosome=NULL, from=NULL, to=NULL, zoom.in=NULL)
ideogram |
Data frame, chromosome ideogram data with chromosome names, start position, end position, band name and stains for each band or each chromosome. |
chromosome |
Character vector, name of chromosome to be zoomed in. |
from |
Non-negative integer, genomic coordinates of start position of chromosome region to be zoomed in. |
to |
Non-negative integer, genomic coordinates of end position of chromosome region to be zoomed in. |
zoom.in |
Non-negative number, fold to zoom in. |
Data frame, ideogram with new zoomed in region.
Henry Zhang
## Not run: library(RCircos) data(UCSC.HG19.Human.CytoBandIdeogram) zoomedIdeo <- RCircos.ZoomIn.Chromosome( ideogram=UCSC.HG19.Human.CytoBandIdeogram, chromosome="chr17", from=10000, to=20000, zoom.in=1000) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.