-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathruntimePlot.R
51 lines (44 loc) · 1.63 KB
/
runtimePlot.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
library(ggplot2)
library(plyr)
#setwd("W:/i")
#./runtime.sh | tee time.tsv
sw <- read.csv("../time.na12878.tsv", sep="\t")
sw <- read.csv("../time.rd.tsv", sep="\t")
sw %>%
group_by(caller, aligner) %>%
summarise(totaltime=sum(real/60), n=n()) %>%
select(caller, aligner, totaltime, n) %>%
View
#sw <- read.csv("runtime.tsv", sep="\t")
#sw <- sw[sw$caller!="idsv",]
ggplot(ddply(sw, ~ caller + readDepth, summarise, cpu=mean(user) + mean(sys), wall=mean(real))) +
aes(x=readDepth, group=caller, color=caller) +
geom_line(aes(y=cpu)) +
geom_point(aes(y=cpu)) +
scale_y_log10() + scale_x_log10() +
#scale_x_continuous() + scale_y_continuous(limits=c(0, 1000)) +
geom_text(aes(label=caller, color=caller, y=cpu, hjust=1.1)) +
ylab("CPU time (s)") +
theme_bw() +
ggtitle("Caller Run-time hg19 chr12 simulated variants")
ggsave("runtime-depth.png")
ggplot(ddply(sw[sw$readDepth==100,], ~ caller + readLength, summarise, cpu=mean(user) + mean(sys), real=mean(real))) +
aes(x=readLength, group=caller, color=caller) +
geom_line(aes(y=cpu)) +
geom_point(aes(y=cpu)) +
scale_y_log10() +
geom_text(aes(label=caller, color=caller, y=cpu, hjust=1.1)) +
ylab("CPU time (s)") +
theme_bw() +
ggtitle("Caller Run-time at 100x")
ggsave("runtime-length.png")
ggplot(ddply(sw[sw$maxResMem > 0,], ~ caller + readDepth, summarise, cpu=max(maxResMem) / 1024 / 4)) +
aes(x=readDepth, group=caller, color=caller) +
geom_line(aes(y=cpu)) +
geom_point(aes(y=cpu)) +
scale_y_log10() +
geom_text(aes(label=caller, color=caller, y=cpu, hjust=1.1)) +
ylab("Memory Usage (Mb)") +
theme_bw() +
ggtitle("Caller Memory Usage")
ggsave("memory.emf")