library("Gviz")
gen <- "hg19"
chrom <- "chr2"
start <- 38290160
end <- 38303219
if(interactive()) {
clinVariant<-ClinVarMainTrack(gen,chrom,start,end)
plotTracks(clinVariant, from = start, to =end)
}else{
data(clinVarMaintrack)
plotTracks(clinVariant, from = start, to =end)
}
Run the code above in your browser using DataLab