File: plot_ROC.Rscript

package info (click to toggle)
transdecoder 5.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 29,088 kB
  • sloc: perl: 11,574; python: 271; sh: 147; makefile: 73
file content (22 lines) | stat: -rwxr-xr-x 437 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env Rscript

args<-commandArgs(TRUE)

if (length(args) == 0) {
    stop("require param: features.scores.roc")
}

dat_filename = args[1]

data = read.table(dat_filename, header=T)

library(ggplot2)
library(splines)

data = read.table(dat_filename, header=T)
p = ggplot(data, aes(x=FPR, y=TPR, color=cat)) + geom_point() + geom_line() + theme(legend.position="none")
pdf( paste0(dat_filename, ".plot.pdf"))
print(p)
dev.off()