/rGenomeTracks

Integrated Visualization of (Epi)Genomic Data in R

Primary LanguageRGNU General Public License v3.0GPL-3.0

rGenomeTracks is an R package the leverage the power of pyGenomeTracks to create quick and tidy epigenomic visualizations in R.

Installation

Installation from bioconductor

BiocManager::install("rGenomeTracks")

or from github

## install.packages("devtools")
devtools::install_github("OAshkar/rGenomeTracks")

Basic Usage

library(rGenomeTracks)

# Get track directory
 tads_dir <- system.file("extdata", "tad_classification.bed", package = "rGenomeTracks")
 
 # Create TADS track
 tads <- track_domains(
   file = tads_dir, border_color = "black",
   color = "none", height = 5,
   line_width = 5,
   show_data_range = FALSE,
 )

#Plot the track
par(mar = c(1,1,1,1))
plot_gtracks(tads, chr = "X", start = 25 * 10^5, end = 31 * 10^5)

Please visit the package's vignette for more examples.

Cite

citation(rGenomeTracks)

Suggestions & Bug Reports

Feel free to open a new issue here: https://github.com/OAshkar/rGenomeTracks/issues