Skip to content

Commit

Permalink
bounds printing and option tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Ondov committed Apr 15, 2016
1 parent 7d62541 commit 16d2e23
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/mash/CommandBounds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ CommandBounds::CommandBounds()
argumentString = "";

useOption("help");
addOption("kmer", Option(Option::Integer, "k", "", "k-mer size.", "21"));
addOption("kmer", Option(Option::Integer, "k", "", "k-mer size.", "21", 1, 32));
addOption("prob", Option(Option::Number, "p", "", "Mash distance estimates will be within the given error bounds with this probability.", "0.99", 0, 1));
}

Expand All @@ -47,6 +47,10 @@ int CommandBounds::run() const
int k = getOption("kmer").getArgumentAsNumber();
double q2 = (1.0 - getOption("prob").getArgumentAsNumber()) / 2.0;

cout << endl << "Parameters (run with -h for details):" << endl;
cout << " k: " << k << endl;
cout << " p: " << getOption("prob").getArgumentAsNumber() << endl << endl;

cout << "\tMash distance" << endl;
cout << "Sketch";

Expand Down Expand Up @@ -91,5 +95,7 @@ int CommandBounds::run() const
cout << endl;
}

cout << endl;

return 0;
}

0 comments on commit 16d2e23

Please sign in to comment.