From 30f81aa94ec6cba6bb972a59b13b66d14a281185 Mon Sep 17 00:00:00 2001 From: Arkadiusz Gladki Date: Wed, 13 Feb 2019 22:04:28 +0100 Subject: [PATCH 1/2] Improve slightly procedure for best ploidy detection --- src/main.cpp | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 30f804f..369cb9a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1009,17 +1009,40 @@ int main(int argc, char *argv[]) int secondBest= ploidies[max_element(percentage_GenExpl.begin(),percentage_GenExpl.end())-percentage_GenExpl.begin()]; cout << "..Best ploidy could have been set to "< 2 for best ploidy. Use same rules as in case of 4 => 2 change + if (bestPloidy==3 && std::find(ploidies.begin(), ploidies.end(), 2) != ploidies.end()) { + int ind2=std::find(ploidies.begin(), ploidies.end(), 2)-ploidies.begin(); + int ind3=std::find(ploidies.begin(), ploidies.end(), 3)-ploidies.begin(); + + if (percentage_GenExpl[ind3]-percentage_GenExpl[ind2] Date: Wed, 13 Feb 2019 22:43:55 +0100 Subject: [PATCH 2/2] Bump version --- src/version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/version.h b/src/version.h index 53f88d2..727c5c1 100644 --- a/src/version.h +++ b/src/version.h @@ -3,7 +3,7 @@ #define VERSION_H const double VERSION_OFFSET = 3; -const double FREEC_VERSION = 11.5; +const double FREEC_VERSION = 11.6; const double CONTROL_FREEC_VERSION = FREEC_VERSION - VERSION_OFFSET; #endif