-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorder.R
32 lines (24 loc) · 831 Bytes
/
order.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
bma.path <- "C:\\MyPath\\BioModelAnalyzer\\src\\BioCheckConsole\\bin\\x64\\Release\\BioCheckConsole.exe"
source("generation.R")
source("analysis.R")
source("visualisation.R")
library(magrittr)
args <- commandArgs(trailingOnly=T)
if (length(args) < 2) {
stop("Error: too few arguments.")
}
if (length(args) > 3) {
stop("Error: too many arguments.")
}
network.filename <- args[1]
mutations.filename <- args[2]
is.async <- ""
if (length(args) == 3 && args[3] == "-async") {
is.async <- "-async"
}
generate(network.filename, mutations.filename, bma.path)
cell.lines <- load.cell.lines(mutations.filename)[["Cell_Line"]]
results <- read.cell.line.results(cell.lines) %>%
lapply(expand.fixpoints)
summary <- analyse(results)
visualise(summary, cell.line.names = cell.lines)