library(ideogRam) library(GenomicRanges)
A human genome is depicted below. The grey and black bands in each chromosome represent heterochromatin. The pink region is the area around the centromere, and the blue represents variable regions.
ideogRam(organism = "human", chrHeight = 500)
ideogRam( organism = "mouse", orientation = "horizontal", showBandLabels = TRUE, chrHeight = 300 )
The location of BRCA1 is depicted here in red.
brca1 <- GRanges('17', IRanges(43044294, 43125482), name = "BRCA1") # This seems a bug, as it shows chromosomes 1, 7 and 17. ideogRam(organism = "human") %>% set_option(chromosomes = '17', chrHeight = 600, orientation = "horizontal") %>% set_option(showAnnotTooltip = TRUE) %>% add_track(brca1)
Large-scale structural variations (SVs) can be depicted using colored overlays, as seen below.
ten_virtual_cnvs <- ideogRam:::sample_10_virtual_cnvs() ten_virtual_cnvs ideogRam(organism = "human") %>% set_option(chrHeight = 300, chrMargin = 2, annotationsLayout = "overlay", orientation = "horizontal") %>% add_track(ten_virtual_cnvs)
ideogRam(organism = "human", orientation = "vertical", rows = 2) %>% set_option(resolution = 550, chrHeight = 150, rotatable = FALSE)
ideogRam( organism = "human", chromosome = "1", resolution = 550, chrHeight = 600, orientation = "horizontal", brush = TRUE ## In the new version, we need to give a string )
ideogRam( organism = "human", sex = "female", chrHeight = 300, chrWidth = 8, ploidy = 2 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.