changeset 2:c90b52773d2e draft

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/segmetrics/ commit fc2ed9f0259912912507567c81241f695dc8c33a
author imgteam
date Sat, 08 Oct 2022 19:54:28 +0000
parents 3a7310406943
children c496306c1cba
files run-segmetrics.py test-data/results1.csv test-data/results2.csv
diffstat 3 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/run-segmetrics.py	Sat Oct 08 17:19:48 2022 +0000
+++ b/run-segmetrics.py	Sat Oct 08 19:54:28 2022 +0000
@@ -128,6 +128,6 @@
 
     # write results
     with open(args.results, 'w', newline='') as fout:
-        csv_writer = csv.writer(fout, delimiter=';', quotechar='|', quoting=csv.QUOTE_MINIMAL)
+        csv_writer = csv.writer(fout, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL)
         for row in rows:
             csv_writer.writerow(row)
--- a/test-data/results1.csv	Sat Oct 08 17:19:48 2022 +0000
+++ b/test-data/results1.csv	Sat Oct 08 19:54:28 2022 +0000
@@ -1,2 +1,2 @@
-;Dice;SEG;Jaccard index;Ob. HSD (sym);Ob. NSD;Split;Merge;Spurious;Missing
-;0.5473684210526316;0.291005291005291;1.6238374627624792;141.68949443548658;0.8175405481022531;0;1;2;0
+,Dice,SEG,Jaccard index,Ob. HSD (sym),Ob. NSD,Split,Merge,Spurious,Missing
+,0.5473684210526316,0.291005291005291,1.6238374627624792,141.68949443548658,0.8175405481022531,0,1,2,0
--- a/test-data/results2.csv	Sat Oct 08 17:19:48 2022 +0000
+++ b/test-data/results2.csv	Sat Oct 08 19:54:28 2022 +0000
@@ -1,4 +1,4 @@
-;Dice;SEG;Jaccard index;Ob. HSD (sym);Ob. NSD;Split;Merge;Spurious;Missing
-directory/img1.png;0.5473684210526316;0.14285714285714285;1.6238374627624792;142.42099468121046;0.7765050343914003;1;0;0;2
-directory/img2.png;0.5473684210526316;0.291005291005291;1.6238374627624792;141.68949443548658;0.8175405481022531;0;1;2;0
-;0.5473684210526316;0.2169312169312169;1.6238374627624792;142.0552445583485;0.7970227912468267;1;1;2;2
+,Dice,SEG,Jaccard index,Ob. HSD (sym),Ob. NSD,Split,Merge,Spurious,Missing
+directory/img1.png,0.5473684210526316,0.14285714285714285,1.6238374627624792,142.42099468121046,0.7765050343914003,1,0,0,2
+directory/img2.png,0.5473684210526316,0.291005291005291,1.6238374627624792,141.68949443548658,0.8175405481022531,0,1,2,0
+,0.5473684210526316,0.2169312169312169,1.6238374627624792,142.0552445583485,0.7970227912468267,1,1,2,2