From b5b448c7d3ca967f91fbd989f0a1ca1e77af6c62 Mon Sep 17 00:00:00 2001 From: Tim Dunn Date: Thu, 24 Oct 2024 22:33:45 -0400 Subject: [PATCH] removed --advanced flag, hiding clustering options --- src/globals.cpp | 29 +++++++---------------------- src/globals.h | 1 - 2 files changed, 7 insertions(+), 23 deletions(-) diff --git a/src/globals.cpp b/src/globals.cpp index f06c165..acf0977 100644 --- a/src/globals.cpp +++ b/src/globals.cpp @@ -33,12 +33,7 @@ void Globals::parse_args(int argc, char ** argv) { if (argc < 4) { int i = 1; while (i < argc) { - if (std::string(argv[i]) == "-a" || - std::string(argv[i]) == "--advanced") { - i++; - print_help = true; - g.advanced = true; - } else if (std::string(argv[i]) == "-h" || + if (std::string(argv[i]) == "-h" || std::string(argv[i]) == "--help") { i++; print_help = true; @@ -380,11 +375,6 @@ void Globals::parse_args(int argc, char ** argv) { std::string(argv[i]) == "--realign-only") { i++; g.realign_only = true; -/*******************************************************************************/ - } else if (std::string(argv[i]) == "-a" || - std::string(argv[i]) == "--advanced") { - i++; - g.advanced = true; /*******************************************************************************/ } else if (std::string(argv[i]) == "-rt" || std::string(argv[i]) == "--realign-truth") { @@ -492,6 +482,12 @@ void Globals::print_usage() const printf(" -e, --gap-extend-penalty [%d]\n", g.extend); printf(" Smith-Waterman gap extension penalty\n"); + printf("\n Clustering:\n"); + printf(" -i, --max-iterations [%d]\n", g.max_cluster_itrs); + printf(" maximum iterations for expanding/merging clusters\n"); + printf(" -c, --cluster (biwfa | size | gap ) [biwfa]\n"); + printf(" select clustering method (see Github Wiki for details)\n"); + printf("\n Precision-Recall:\n"); printf(" -ct, --credit-threshold [%.2f]\n", g.credit_threshold); printf(" minimum partial credit to consider variant a true positive\n"); @@ -505,21 +501,10 @@ void Globals::print_usage() const printf("\n Miscellaneous:\n"); printf(" -h, --help\n"); printf(" show this help message\n"); - printf(" -a, --advanced\n"); - printf(" show advanced options, not recommended for most users\n"); printf(" -ci, --citation\n"); printf(" please cite vcfdist if used in your analyses. Thanks :)\n"); printf(" -v, --version\n"); printf(" print %s version (v%s)\n", this->PROGRAM.data(), this->VERSION.data()); - - if (!this->advanced) return; - - printf("\n\nAdvanced Options: (not recommended for most users)\n"); - printf("\n Clustering:\n"); - printf(" -i, --max-iterations [%d]\n", g.max_cluster_itrs); - printf(" maximum iterations for expanding/merging clusters\n"); - printf(" -c, --cluster (biwfa | size | gap ) [biwfa]\n"); - printf(" select clustering method (see documentation for details)\n"); } diff --git a/src/globals.h b/src/globals.h index 232229d..48de987 100644 --- a/src/globals.h +++ b/src/globals.h @@ -52,7 +52,6 @@ class Globals { std::vector ram_steps; // high-level options - bool advanced = false; int verbosity = 1; int sv_threshold = 50; std::string out_prefix;