Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
Refactor --gcf option to take a trees file. --help usage for concorda…
Browse files Browse the repository at this point in the history
…nce factor analysis.
  • Loading branch information
bqminh committed Nov 19, 2018
1 parent a016752 commit 4362993
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main/phyloanalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3945,7 +3945,7 @@ void assignBranchSupportNew(Params &params) {
string prefix = (params.out_prefix) ? params.out_prefix : params.user_file;
string str = prefix + ".cf.tree";
tree->printTree(str.c_str());
cout << "Tree with assigned branch supports written to " << str << endl;
cout << "Tree with concordance factors written to " << str << endl;
if (verbose_mode >= VB_DEBUG)
tree->drawTree(cout);
str = prefix + ".cf.branch";
Expand Down Expand Up @@ -3983,7 +3983,7 @@ void assignBranchSupportNew(Params &params) {
out << '\t' << label << '\t' << length << endl;
}
out.close();
cout << "Concordance factors printed to " << filename << endl;
cout << "Concordance factors per branch printed to " << filename << endl;
if (!params.site_concordance_partition || !tree->isSuperTree())
return;
// print partition-wise concordant/discordant sites
Expand Down Expand Up @@ -4017,7 +4017,7 @@ void assignBranchSupportNew(Params &params) {
}
}
out.close();
cout << "Concordance factors for loci printed to " << filename << endl;
cout << "Concordance factors per branch and locus printed to " << filename << endl;
}


Expand Down
13 changes: 13 additions & 0 deletions utils/tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1518,6 +1518,10 @@ void parseArg(int argc, char *argv[], Params &params) {

if (strcmp(argv[cnt], "--gcf") == 0) {
params.consensus_type = CT_ASSIGN_SUPPORT_EXTENDED;
cnt++;
if (cnt >= argc)
throw "Use --gcf <user_trees_file>";
params.treeset_file = argv[cnt];
continue;
}
if (strcmp(argv[cnt], "--scf") == 0) {
Expand Down Expand Up @@ -4153,6 +4157,15 @@ void usage_iqtree(char* argv[], bool full_command) {
<< " --bisymtest-pval NUMER P-value cutoff (default: 0.05)" << endl
<< " --bisymtest-keep-zero Keep NAs in the tests" << endl
<< " --permsymtest NUMBER Replicates for permutation tests of symmetry" << endl

<< endl << "CONCORDANCE FACTOR ANALYSIS:" << endl
<< " -t FILE Reference tree to assign concordance factor" << endl
<< " --gcf FILE Set of trees gene concordance factor (gCF)" << endl
<< " --scf NUMBER Number of quartets for site concordance factor (sCF)" << endl
<< " -s FILE Sequence alignment for --scf" << endl
<< " -p FILE|DIR Partition file or directory for --scf" << endl
<< " --scf-part Write sCF per partition to .cf.stat2 file" << endl

<< endl;


Expand Down

0 comments on commit 4362993

Please sign in to comment.