def syntaxFeaturesDiagram(): "This runs on flenser so it properly should have a 'gen' prefix I guess" run('ghc -O2 --make FormatFeatures') for sample in consts.samples: for feature in consts.features: for norm2 in ['over', 'ratio']: v = (sample,feature,norm2) run('./FormatFeatures feat-5-%s-%s-%s.txt' % v) for (fro,to) in norte.pairwise(sorted(consts.agreeClusters.keys(), reverse=True)): fname = ('%s-%s-feat-5-%s-%s-%s' % ((to,fro) + v),) run('latex %s.txt' % fname) run('dvips -Ppdf %s.dvi' % fname) run('ps2pdf %s.ps' % fname) run('mv *pdf ../')
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))