View source: R/BiofeatureGraphics.R
dgfootprints_RoadMap | R Documentation |
Creates a DGFP track from a file of RoadMap using the Gviz bioconductor package. A complete list of features and their associated colours can be found in the user guide.
dgfootprints_RoadMap(gen="hg19", chr, start, end, bedFilePath, tissueGroupDisplay='Blood & T-cell',showId=FALSE, type_stacking="dense", title= "DGFP RoadMap")
gen |
the name of the genome. Default value=hg19 |
chr |
The chromosome of interest |
start |
The starting position in the region of interest (the smallest value) |
end |
The end position in the region of interest (the largest value) |
bedFilePath |
The file path to the .BED file containing the data to be visualised |
tissueGroupDisplay |
the group of tissue visualised among list("Neurosph","Epithelial","IMR90","Thymus","Heart","Brain","Digestive","Muscle","Other","iPSC","HSC & B-cell","Blood & T-cell"="ES-deriv") |
showId |
logical. say if we write the name of group |
type_stacking |
Object of class"character", the stacking type of overlapping items on the final plot.One in c(hide, dense, squish, pack,full). More information cf the option "stacking" in Gviz |
title |
The name of the annotation track |
An AnnotationTrack object of Gviz
Tiphaine Martin
Tom Hardiman
http://bioconductor.org/packages/release/bioc/html/Gviz.html
Got to RoadMap Epigenome
library("Gviz") chr <- "chr1" start <- 236728 end <- 238778 gen="hg19" extdata <- system.file("extdata", package="coMET",mustWork=TRUE) bedFilePath <- file.path(extdata, "RoadMap/CD3-DS17198.hg19_subset.bed") if(interactive()){ dgfootprints_RoadMapSingle <- dgfootprints_RoadMap(gen,chr,start, end, bedFilePath, tissueGroupDisplay='Blood & T-cell' ) plotTracks(dgfootprints_RoadMapSingle, from = start, to = end, fontfamily="sans",fontfamily.title="sans") } else { data(dgfootprints_RoadMapSingle) plotTracks(dgfootprints_RoadMapSingle, from = start, to = end, fontfamily="sans",fontfamily.title="sans") }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.