/** Process input in json format **/
procedure process(input,task) {
- require('json')
+ require("json")
local input = json.decode(input)
local stemma = readStemma(input.graph)
local samples = readSamples(stemma,input.groupings)
/** Process input from two files **/
procedure processFiles(stemmafile,samplefile,task) {
- require('json')
+ require("json")
local f = assert(io.open(stemmafile,"r"))
local stemma = readStemma(f:read("*all"))
f:close()