library("Gviz")
gen <- "hg38"
chr <- "chr1"
start <- 10000
end <- 50000
featureDisplay <- "CTCF"
if(interactive()){
bindMotifsBiomartTrackSingle<-bindingMotifsBiomart_ENSEMBL(gen,chr,start,end,featureDisplay)
plotTracks(bindMotifsBiomartTrackSingle, from = start, to = end)
} else {
data(bindMotifsBiomartTrackSingle)
plotTracks(bindMotifsBiomartTrackSingle, from = start, to = end)
}
######
library("Gviz")
gen <- "hg38"
chr <- "chr1"
start <- 10000
end <- 50000
featureDisplay <- c("CTCF","Egr1")
if(interactive()){
bindMotifsBiomartTrackMultiple<-bindingMotifsBiomart_ENSEMBL(gen,chr,start,end,featureDisplay)
plotTracks(bindMotifsBiomartTrackMultiple, from = start, to = end)
} else {
data(bindMotifsBiomartTrackMultiple)
plotTracks(bindMotifsBiomartTrackMultiple, from = start, to = end)
}
######
library("Gviz")
gen <- "hg38"
chr <- "chr1"
start <- 10000
end <- 50000
featureDisplay <- "all"
if(interactive()){
bindMotifsBiomartTrackAll<-bindingMotifsBiomart_ENSEMBL(gen,chr,start,end,featureDisplay)
plotTracks(bindMotifsBiomartTrackAll, from = start, to = end)
} else {
data(bindMotifsBiomartTrackAll)
plotTracks(bindMotifsBiomartTrackAll, from = start, to = end)
}
Run the code above in your browser using DataLab