Skip to content

Commit

Permalink
removed --advanced flag, hiding clustering options
Browse files Browse the repository at this point in the history
  • Loading branch information
TimD1 committed Oct 25, 2024
1 parent fed1a82 commit b5b448c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 23 deletions.
29 changes: 7 additions & 22 deletions src/globals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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") {
Expand Down Expand Up @@ -492,6 +482,12 @@ void Globals::print_usage() const
printf(" -e, --gap-extend-penalty <INTEGER> [%d]\n", g.extend);
printf(" Smith-Waterman gap extension penalty\n");

printf("\n Clustering:\n");
printf(" -i, --max-iterations <INTEGER> [%d]\n", g.max_cluster_itrs);
printf(" maximum iterations for expanding/merging clusters\n");
printf(" -c, --cluster (biwfa | size <INTEGER> | gap <INTEGER>) [biwfa]\n");
printf(" select clustering method (see Github Wiki for details)\n");

printf("\n Precision-Recall:\n");
printf(" -ct, --credit-threshold <FLOAT> [%.2f]\n", g.credit_threshold);
printf(" minimum partial credit to consider variant a true positive\n");
Expand All @@ -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 <INTEGER> [%d]\n", g.max_cluster_itrs);
printf(" maximum iterations for expanding/merging clusters\n");
printf(" -c, --cluster (biwfa | size <INTEGER> | gap <INTEGER>) [biwfa]\n");
printf(" select clustering method (see documentation for details)\n");
}


Expand Down
1 change: 0 additions & 1 deletion src/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class Globals {
std::vector<float> ram_steps;

// high-level options
bool advanced = false;
int verbosity = 1;
int sv_threshold = 50;
std::string out_prefix;
Expand Down

0 comments on commit b5b448c

Please sign in to comment.