comparison g_f0.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} ${gender} ${maxF} ${minF} ${minAmp} ${maxZCR}
8
9
10
11 if (length(args) != 10) {
12 print("Wrong number of arguments!")
13 q("no", status=1)
14 }
15
16 res = ksvF0(args[1], toFile=FALSE, beginTime=as.numeric(args[3]), endTime=as.numeric(args[4]),
17 windowShift=as.numeric(args[5]),
18 gender=args[6],
19 maxF=as.numeric(args[7]),
20 minF=as.numeric(args[8]),
21 minAmp=as.numeric(args[9]),
22 maxZCR=as.numeric(args[10])
23 )
24
25 assp_to_tsv(res, args[2])