library("Gviz")
gen <- "hg19"
chr<-"chr13"
start <- 52713837
end <- 52715894
extdata <- system.file("extdata", package="coMET",mustWork=TRUE)
psiQTLFilePath <- file.path(extdata, "/GTEX/psiQTL_Assoc-total.AdiposeTissue.txt")
if(interactive()){
psiGTexTrackall<- psiQTL_GTEx(gen,chr,start, end, psiQTLFilePath, featureDisplay = 'all', showId=TRUE, type_stacking="squish",just_group="above" )
plotTracks(psiGTexTrackall, from = start, to = end)
} else {
data(psiGTexTrackall)
plotTracks(psiGTexTrackall, from = start, to = end)
}
if(interactive()){
psiGTexTrackSNP<- psiQTL_GTEx(gen,chr,start, end, psiQTLFilePath, featureDisplay = 'SNP', showId=TRUE, type_stacking="squish",just_group="left" )
plotTracks(psiGTexTrackSNP, from = start, to = end)
} else {
data(psiGTexTrackSNP)
plotTracks(psiGTexTrackSNP, from = start, to = end)
}
Run the code above in your browser using DataLab