comparison evaluation.py @ 5:4310ac018d05 draft

planemo upload for repository https://github.com/eteriSokhoyan/galaxytools/tree/branchForIterations/tools/GraphClust/CollectResults commit 80c721dcfe02a2b8baf8e2c64b76cbcd71b23d86
author rnateam
date Sat, 21 Jan 2017 17:39:21 -0500
parents 79b9117aef01
children 869a6e807d76
comparison
equal deleted inserted replaced
4:4a9754d476fe 5:4310ac018d05
1 import glob 1 import glob
2 from os import system 2 from os import system
3 import re 3 import re
4 from sklearn import metrics 4 from sklearn import metrics
5 from shutil import make_archive
5 6
6 def sh(script): 7 def sh(script):
7 system("bash -c '%s'" % script) 8 system("bash -c '%s'" % script)
8 9
9 dataNames = "FASTA/data.names" 10 dataNames = "FASTA/data.names"
65 else: 66 else:
66 toWrite = "completeness_score : NA \nhomogeneity_score : NA \nadjusted_rand_score : NA \nadjusted_mutual_info_score : NA \nv_measure_score : NA" 67 toWrite = "completeness_score : NA \nhomogeneity_score : NA \nadjusted_rand_score : NA \nadjusted_mutual_info_score : NA \nv_measure_score : NA"
67 68
68 with open("RESULTS/evaluation.txt", "w") as fOut: 69 with open("RESULTS/evaluation.txt", "w") as fOut:
69 fOut.write(toWrite) 70 fOut.write(toWrite)
71
72
73 make_archive('RESULTS', 'zip', root_dir='RESULTS')