diff --git a/src/main/groovy/cz/siret/prank/program/routines/results/Evaluation.groovy b/src/main/groovy/cz/siret/prank/program/routines/results/Evaluation.groovy index 6dc1224a..084c1da6 100644 --- a/src/main/groovy/cz/siret/prank/program/routines/results/Evaluation.groovy +++ b/src/main/groovy/cz/siret/prank/program/routines/results/Evaluation.groovy @@ -940,7 +940,7 @@ class Evaluation implements Parametrized { String getMiscStatsCSV() { - stats.collect { "$it.key, ${fmt it.value}" }.join("\n") + stats.collect { "$it.key, ${fmtCsv it.value}" }.join("\n") } String diffSuccRatesCSV(List tolerances, Evaluation diffWith) { @@ -974,7 +974,7 @@ class Evaluation implements Parametrized { */ String toLigandsCSV() { StringBuilder csv = new StringBuilder() - csv << "file, #ligands, ligand, chain, ligCode, #atoms, dca4rank, closestPocketDist, proteinDist, centerToProteinDist, sasDist, #contactProteinAtoms, atomIds \n" + csv << "file, #ligands, ligand, chain, ligCode, #atoms, dca4rank, closestPocketDist, proteinDist, centerToProteinDist, sasDist, #contactProteinAtoms, atomIds\n" ligandRows.each { r -> List rec = new ArrayList() @@ -1065,7 +1065,7 @@ class Evaluation implements Parametrized { String toPocketsCSV() { StringBuilder csv = new StringBuilder() - csv << "file, #ligands, #pockets, pocket, ligand, rank, score, newRank, oldScore, zScoreTP, probaTP, samplePoints, rawNewScore, pocketVolume, surfaceAtoms \n" + csv << "file,#ligands,#pockets,pocket,ligand,rank,score,newRank,oldScore,zScoreTP,probaTP,samplePoints,rawNewScore,pocketVolume,surfaceAtoms\n" for (PocketRow p in pocketRows) { csv << "$p.protName,$p.ligCount,$p.pocketCount,$p.pocketName,$p.ligName," diff --git a/src/main/groovy/cz/siret/prank/program/routines/results/FeatureImportances.groovy b/src/main/groovy/cz/siret/prank/program/routines/results/FeatureImportances.groovy index b62aec7b..98c3ac90 100644 --- a/src/main/groovy/cz/siret/prank/program/routines/results/FeatureImportances.groovy +++ b/src/main/groovy/cz/siret/prank/program/routines/results/FeatureImportances.groovy @@ -38,7 +38,7 @@ class FeatureImportances { static String fmt_fi(Object x) { if (x==null) return "" - sprintf "%8.6f", x + sprintf "%.6f", x } static FeatureImportances from(List importanceValues) {