def syntaxSig(): # 11. Run ctrl.out with various parameter settings. for sample, measure, feature, norm in variants: multirun(6, *norte.icetasks(consts.swediaSites, feature, 'icesig.cpp', measure, sample, norm)) norte.combine(feature, 'sig', measure, sample, norm)
def syntaxDist(): # 9. Run ctrl.out with various parameter settings. for sample, measure, feature, norm in variants: multirun(6, *norte.icetasks(consts.swediaSites, feature, 'icedist.cpp', measure, sample, norm, 10)) norte.combine(feature, 'dist', measure, sample, norm, 10)
def syntaxFeatures(): run('ghc -O2 --make RankFeatures') clusters = sorted(consts.agreeClusters.keys(), reverse=True) # 12. Dump a list of all features between each pair of site clusters. for sample in consts.samples: for feature in consts.features: for norm2 in ['over', 'ratio']: # 12.1 Make cluster files first norte.combineFeatures(consts.agreeClusters, feature) multirun(6, *norte.icetasks(clusters, feature, 'icefeat.cpp', 'r', sample, norm2)) # 12.2 Then analyse it tmps = ' '.join(["%s-%s-tmp.txt" % pair for pair in norte.pairwise(clusters)]) run('./RankFeatures %s >feat-5-%s-%s-%s.txt' % (tmps,sample,feature,norm2))