Skip to content

Commit

Permalink
Merge pull request #386 from AngieHinrichs/allow_diff_file_path
Browse files Browse the repository at this point in the history
matOptimize: Allow -D option
  • Loading branch information
yatisht authored Nov 22, 2024
2 parents 1b8a608 + b9a07b4 commit 16f0af9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/matOptimize/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,16 @@ int main(int argc, char **argv) {
} else if (input_nh_path!=""&&input_vcf_path!="") {
print_file_info("Load starting tree from", "starting tree file,-t", input_nh_path);
print_file_info("Load sample variant from", "sample vcf,-v", input_vcf_path);
} else if (input_nh_path!=""&&diff_file_path!="") {
print_file_info("Load starting tree from", "starting tree file,-t", input_nh_path);
print_file_info("Load sample variant from", "sample maple/diff,-D", diff_file_path);
}
else {
fputs("Input file not completely specified. Please either \n"
"1. Specify an intermediate protobuf from last run with -a to continue optimization, or\n"
"2. Specify a usher-compatible protobuf with -i, and both starting tree and sample variants will be extracted from it, or\n"
"3. Specify a usher-compatible protobuf with -i for starting tree, and a VCF with -v for sample variants, or\n"
"4. Specify the starting tree in newick format with -t, and a VCF with -v for sample variants.\n",stderr);
"4. Specify the starting tree in newick format with -t, and either a VCF with -v or a Maple/diff with -D for sample variants.\n",stderr);
std::cerr << desc << std::endl;
exit(EXIT_FAILURE);
}
Expand Down

0 comments on commit 16f0af9

Please sign in to comment.