Mercurial > repos > rnateam > graphclust_postprocessing
comparison evaluation.py @ 3:a8fde40f00fc 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:25:15 -0500 |
parents | 6c88ad83de28 |
children | dbcea781900e |
comparison
equal
deleted
inserted
replaced
2:6c88ad83de28 | 3:a8fde40f00fc |
---|---|
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') |