Genome level Trellis graph visualizes genomic data conditioned by genomic categories (e.g. chromosomes). For each genomic category, multiple dimensional data which are represented as tracks describe different features from different aspects. This package provides high flexibility to arrange genomic categories and to add self-defined graphics in the plot.
Zuguang Gu, Roland Eils and Matthias Schlesner. gtrellis: an R/Bioconductor package for making genome-level Trellis graphics, 2016. BMC Bioinformatics.
gtrellis is available on Bioconductor, you can install it by:
source("http://bioconductor.org/biocLite.R")
biocLite("gtrellis")
If you want the latest version, install it directly from GitHub:
library(devtools)
install_github("jokergoo/gtrellis")
Basic usage is:
library(gtrellis)
bed = circlize::generateRandomBed()
gtrellis_layout(track_ylim = range(bed[[4]]))
add_track(bed, panel.fun = function(bed) {
x = (bed[[2]] + bed[[3]]) / 2
y = bed[[4]]
grid.points(x, y, pch = 16, size = unit(1, "mm"))
})
There are several tracks with pre-defined graphics:
add_points_track()
add_lines_track()
add_rect_track()
add_segments_track()
add_heatmap_track()
gtrellis supports several types of layouts:
One row layout:
Multiple row layout that chromosomes with similar length are arranged in a same column:
Chromosomes in a same row are arranged compactly to the left:
For each chromosome, multiple tracks are supported:
Example figures are:
GPL (>= 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.