library("Gviz")
gen <- "hg38"
chr <- "chr1"
start <- 10000
end <- 500000
featureDisplay <- "Enhancer"
if(interactive()){
regulatoryFeaturesBiomartTrackSingle<-regulatoryFeaturesBiomart_ENSEMBL(gen,chr,start,end,featureDisplay)
plotTracks(regulatoryFeaturesBiomartTrackSingle, from = start, to = end)
} else {
data(regulatoryFeaturesBiomartTrackSingle)
plotTracks(regulatoryFeaturesBiomartTrackSingle, from = start, to = end)
}
#####
library("Gviz")
gen <- "hg38"
chr <- "chr1"
start <- 10000
end <- 100000
featureDisplay <- c("CTCF Binding Site","Enhancer")
if(interactive()){
regulatoryFeaturesBiomartTrackMultiple<-regulatoryFeaturesBiomart_ENSEMBL(gen,chr,start,end,featureDisplay)
plotTracks(regulatoryFeaturesBiomartTrackMultiple, from = start, to = end)
} else {
data(regulatoryFeaturesBiomartTrackMultiple)
plotTracks(regulatoryFeaturesBiomartTrackMultiple, from = start, to = end)
}
#####
library("Gviz")
gen <- "hg38"
chr <- "chr1"
start <- 10000
end <- 50000
featureDisplay <- "all"
if(interactive()){
regulatoryFeaturesBiomartTrackAll<-regulatoryFeaturesBiomart_ENSEMBL(gen,chr,start,end,featureDisplay)
plotTracks(regulatoryFeaturesBiomartTrackAll, from = start, to = end)
} else {
data(regulatoryFeaturesBiomartTrackAll)
plotTracks(regulatoryFeaturesBiomartTrackAll, from = start, to = end)
}
Run the code above in your browser using DataLab