-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlola.R
More file actions
22 lines (17 loc) · 789 Bytes
/
lola.R
File metadata and controls
22 lines (17 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
##--------------------------------------------------------------------------------------------
## Objective : For a given query and background file, run LOLA Enrichment
##--------------------------------------------------------------------------------------------
suppressMessages(library(LOLA))
suppressMessages(library(simpleCache))
suppressMessages(library(genomation))
args <- commandArgs(trailingOnly = TRUE)
queryfilePath=as.character(args[1])
unifilePath=as.character(args[2])
lolaregiondbPath=as.character(args[3])
opdirname=as.character(args[4])
## Run LOLA
regionDB = loadRegionDB(lolaregiondbPath)
query = readBed(queryfilePath)
univ = readBed(unifilePath)
res = runLOLA(query, univ, regionDB, cores=1)
writeCombinedEnrichment(res, outFolder=opdirname, includeSplits=TRUE)