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