library("Gviz")
chr <- "chr1"
start <- 4500000
end <- 4600000
featureDisplay <- "7_Enh"
extdata <- system.file("extdata", package="coMET",mustWork=TRUE)
bedFilePath <- file.path(extdata, "RoadMap/E063_15_coreMarks_mnemonics.bed")
if(interactive()){
chromHMM_RoadMapSingle <- chromHMM_RoadMap(gen="hg19",chr,start, end, bedFilePath, featureDisplay = featureDisplay, colorcase='roadmap15' )
plotTracks(chromHMM_RoadMapSingle, from = start, to = end)
} else {
data(chromHMM_RoadMapSingle)
plotTracks(chromHMM_RoadMapSingle, from = start, to = end)
}
######
library("Gviz")
chr <- "chr1"
start <- 4500000
end <- 4600000
featureDisplay <- c("7_Enh","13_ReprPC")
extdata <- system.file("extdata", package="coMET",mustWork=TRUE)
bedFilePath <- file.path(extdata, "RoadMap/E063_15_coreMarks_mnemonics.bed")
if(interactive()){
chromHMM_RoadMapMultiple <- chromHMM_RoadMap(gen="hg19",chr,start, end, bedFilePath, featureDisplay = featureDisplay, colorcase='roadmap15' )
plotTracks(chromHMM_RoadMapMultiple, from = start, to = end)
} else {
data(chromHMM_RoadMapMultiple)
plotTracks(chromHMM_RoadMapMultiple, from = start, to = end)
}
#####
library("Gviz")
chr <- "chr1"
start <- 4500000
end <- 4600000
featureDisplay <- "all"
extdata <- system.file("extdata", package="coMET",mustWork=TRUE)
bedFilePath <- file.path(extdata, "RoadMap/E063_15_coreMarks_mnemonics.bed")
if(interactive()){
chromHMM_RoadMapAll <- chromHMM_RoadMap(gen="hg19",chr,start, end, bedFilePath, featureDisplay = featureDisplay, colorcase='roadmap15' )
plotTracks(chromHMM_RoadMapAll, from = start, to = end)
} else {
data(chromHMM_RoadMapAll)
plotTracks(chromHMM_RoadMapAll, from = start, to = end)
}
Run the code above in your browser using DataLab