From 5345ca4d1d5578f6ae3bd1dbecb6d4827fdc3579 Mon Sep 17 00:00:00 2001 From: gwct Date: Fri, 30 Apr 2021 09:44:11 -0600 Subject: [PATCH] added warnings about gene trees with polytomies; fixed a bug with mul-tree counting when -d 0 is set --- README.md | 2 +- data/test_data/gt-poly-test.txt | 3 +++ docs/readme.html | 8 +++++--- docs/scripts/generators/readme_generator.py | 6 ++++-- grampa.py | 8 +++++--- lib/gene_tree.py | 4 ++-- lib/opt_parse.py | 2 +- 7 files changed, 21 insertions(+), 12 deletions(-) create mode 100644 data/test_data/gt-poly-test.txt diff --git a/README.md b/README.md index e29df83..aa646b5 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ This would perform a full search for the optimal (lowest-scoring) MUL-tree on th | Option | Description | | ------ | ----------- | | -s | A file or string containing a bifurcating, rooted species tree in Newick format. This tree can either be singly-labeled or MUL. | -| -g | A file containing one or more rooted, Newick formatted gene trees. | +| -g | A file containing one or more bifurcating, rooted, Newick formatted gene trees. Gene trees with polytomies will be removed from the dataset. | | -h1 | A space separated list of nodes to search as the polyploid clade. Only used with `-t s`. If nothing is entered all nodes will be considered. | | -h2 | A space separated list of nodes to search as possible parental lineages for all nodes specified with `-h1`. If nothing is entered all possible nodes for the current `h1` will be considered. | | -d | An option to specify whether to do reconciliations to MUL-trees only (0), the singly-labeled tree only (1), or both (2). Default: 2 | diff --git a/data/test_data/gt-poly-test.txt b/data/test_data/gt-poly-test.txt new file mode 100644 index 0000000..8b96b3b --- /dev/null +++ b/data/test_data/gt-poly-test.txt @@ -0,0 +1,3 @@ +((((((1_x,1_y),1_z),1_B),1_A),1_C),1_D) +((((((1_x,1_y),1_z),1_B),1_A),(((2_x,2_y),2_z),1_C)),1_D) +(((((1_x,1_y,1_z),1_B),1_A),1_C),1_D) \ No newline at end of file diff --git a/docs/readme.html b/docs/readme.html index a98abc4..4e129eb 100644 --- a/docs/readme.html +++ b/docs/readme.html @@ -228,7 +228,8 @@

Options Table

-g - A file containing one or more rooted, Newick formatted gene trees. + A file containing one or more bifurcating, rooted, Newick formatted gene trees. Gene trees with polytomies are currently not supported + and will be automatically filtered from the analysis. -h1 @@ -331,7 +332,8 @@

Detailed options

-g : A file containing newick formatted gene trees.