comparison g_forest.R @ 1:dbcf9bc275e3 draft

planemo upload commit 063e049d569aeb45e1008cbf044f2dad850eca3d-dirty
author stevecassidy
date Wed, 07 Dec 2016 19:10:51 -0500
parents
children
comparison
equal deleted inserted replaced
0:6d6dc275b107 1:dbcf9bc275e3
1
2 library(wrassp)
3
4 args = commandArgs(TRUE)
5 # args will be like
6 # ${wavfile} ${output}
7 # ${beginTime} ${endTime} ${windowShift} ${windowSize} ${effectiveLength}
8 # ${nominalF1} ${gender} ${estimate} ${order} ${incrOrder} ${numFormants}
9 # ${window} ${preEmphasis}
10
11
12 if (length(args) != 15) {
13 print("Wrong number of arguments!")
14 q("no", status=1)
15 }
16
17 res = forest(args[1], toFile=FALSE, beginTime=as.numeric(args[3]), endTime=as.numeric(args[4]),
18 windowShift=as.numeric(args[5]),
19 windowSize=as.numeric(args[6]),
20 effectiveLength=as.integer(args[7]),
21 nominalF1=as.numeric(args[8]),
22 gender=args[9],
23 estimate=as.integer(args[10]),
24 order=as.numeric(args[11]), incrOrder=as.numeric(args[12]),
25 numFormants=as.numeric(args[13]), window=args[14],
26 preemphasis=as.numeric(args[15])
27 )
28
29 assp_to_tsv(res, args[2])