data-raw/to_clean/run_simulation.R

#!/usr/bin/env Rscript
library('devtools')
load_all("../")
library("logging")
source("./scripts/sgdata.R")
drivermapsdir<- "/dartfs/rc/lab/S/Szhao/library/diffdriver_anno/"
outputdir <- "~/temp/"
outputname <- "diffDriver_demo"
type="BLCA"
mutationdir="/dartfs/rc/lab/S/Szhao/diffDriver/data_run_prs/tumor_specific_input/"

genef = paste0(mutationdir,type,"/",type,"genes.txt")
mutf = paste0(mutationdir,type,"/",type,"_mutations.txt")
phenof =paste0(mutationdir,type,"/",type,"_PRS_46phenotype.txt")
hotf=paste0(drivermapsdir,"hotspot.txt")


logfile <- file(paste0(outputdir, outputname, ".log"), open="wt")
addHandler(writeToFile, file= logfile, level='DEBUG')
loginfo("Started running diffdriver ...")

res <- annoAllg(genef, mutf, phenof,j=6,hotf, drivermapsdir = drivermapsdir, outputdir = outputdir, outputname = outputname)
save(res,file="annoAll.Rd")
szhaolab/diffdriver documentation built on June 1, 2025, 8:04 p.m.