Skip to content

Commit

Permalink
revise pxclsq help
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwb committed Jan 10, 2025
1 parent bfb4681 commit 10ee788
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main_clsq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ std::string get_version_line ();
void print_help () {
std::cout << std::endl;
std::cout << "Clean alignments by removing positions/taxa with too much ambiguous data." << std::endl;
std::cout << "NOTE: proportion/count args are in terms of VALID states, not ambiguous states." << std::endl;
std::cout << "This will take fasta, fastq, phylip, and nexus formats from a file or STDIN." << std::endl;
std::cout << "Results are written in fasta format." << std::endl;
std::cout << std::endl;
std::cout << "Usage: pxclsq [OPTIONS]..." << std::endl;
std::cout << std::endl;
std::cout << "Options:" << std::endl;
std::cout << " -s, --seqf=FILE input sequence file, STDIN otherwise" << std::endl;
std::cout << " -p, --prop=DOUBLE proportion required to be present, default=0.5" << std::endl;
std::cout << " -p, --prop=DOUBLE proportion of valid character states required to be present, default=0.5" << std::endl;
std::cout << " -e, --empty remove columns that are completely empty (- or ?)" << std::endl;
std::cout << " -m, --min=INT the minimum number of good characters required per site" << std::endl;
std::cout << " -m, --min=INT the minimum number of valid character states required per site" << std::endl;
std::cout << " - a min of 1 is equivalent to -e above" << std::endl;
std::cout << " -t, --taxa consider missing data per taxon (default: per site)" << std::endl;
std::cout << " -c, --codon examine sequences by codon rather than site" << std::endl;
Expand Down Expand Up @@ -88,7 +89,7 @@ int main(int argc, char * argv[]) {
bool count_only = false;
bool remove_empty = false;
int min_chars = 0;

while (true) {
int oi = -1;
int c = getopt_long(argc, argv, "s:o:p:em:atcivhVC", long_options, &oi);
Expand Down Expand Up @@ -190,6 +191,6 @@ int main(int argc, char * argv[]) {
fstr->close();
delete pios;
}

return EXIT_SUCCESS;
}

1 comment on commit 10ee788

@josephwb
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue #188

Please sign in to comment.