extdata <- system.file("extdata", package="coMET",mustWork=TRUE)
configfile <- file.path(extdata, "config_cyp1b1_zoom_4comet.txt")
myinfofile <- file.path(extdata, "cyp1b1_infofile.txt")
myexpressfile <- file.path(extdata, "cyp1b1_infofile_exprGene_region.txt")
mycorrelation <- file.path(extdata, "cyp1b1_res37_rawMatrix.txt")
chrom <- "chr2"
start <- 38290160
end <- 38303219
gen <- "hg38"
if(interactive()){
genetrack <-genesENSEMBL(gen,chrom,start,end,showId=TRUE)
snptrack <- snpBiomart(chrom, start, end,
dataset="hsapiens_snp_som",showId=FALSE)
strutrack <- structureBiomart(chrom, start, end,
strand, dataset="hsapiens_structvar_som")
clinVariant<-ClinVarMainTrack(gen,chrom,start,end)
clinCNV<-ClinVarCnvTrack(gen,chrom,start,end)
gwastrack <-GWASTrack(gen,chrom,start,end)
geneRtrack <-GeneReviewsTrack(gen,chrom,start,end)
listgviz <- list(genetrack,snptrack,strutrack,clinVariant,
clinCNV,gwastrack,geneRtrack)
comet(config.file=configfile, mydata.file=myinfofile, mydata.type="listfile",
cormatrix.file=mycorrelation, cormatrix.type="listfile",
mydata.file=myexpressfile, mydata.large.type="listfile",
tracks.gviz=listgviz,
verbose=FALSE, print.image=FALSE,disp.pvalueplot=TRUE)
} else {
data(geneENSEMBLtrack)
data(snpBiomarttrack)
data(ISCAtrack)
data(strucBiomarttrack)
data(ClinVarCnvTrack)
data(clinVarMaintrack)
data(GWASTrack)
data(GeneReviewTrack)
listgviz <- list(genetrack,snptrack,strutrack,clinVariant,
clinCNV,gwastrack,geneRtrack)
comet(config.file=configfile, mydata.file=myinfofile, mydata.type="listfile",
cormatrix.file=mycorrelation, cormatrix.type="listfile",
mydata.large.file=myexpressfile, mydata.large.type="listfile",
tracks.gviz=listgviz,
verbose=FALSE, print.image=FALSE,disp.pvalueplot=TRUE)
}
Run the code above in your browser using DataLab