Skip to content

Commit

Permalink
Merge pull request #5 from shang-hongyun/master
Browse files Browse the repository at this point in the history
update example astral
  • Loading branch information
shang-hongyun authored Oct 22, 2024
2 parents 2c95737 + b088476 commit 36dfc68
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

### Introduction ###
We defined the ILS/IH index to represent the degree of Incomplete lineage sorting (ILS) and introgression (IH) among lineages. This tool can quickly detect and visualize ILS/IH index between lineages of tree results run by ASTRAL option -u 2 or -t -2, with short running time, helping users to preliminatively determine ILS and IH and screen lineages for further analysis.For more details of ILS/IH index, please see https://www.biorxiv.org/content/10.1101/2024.09.02.610893v1.
We defined the ILS/IH index to represent the degree of Incomplete lineage sorting (ILS) and introgression (IH) among lineages. This tool can quickly detect and visualize ILS/IH index between lineages of tree results run by ASTRAL option -u 2 or -t -2, with short running time, helping users to preliminatively determine ILS and IH and screen lineages for further analysis.For more details of ILS/IH index, please see https://www.biorxiv.org/content/10.1101/2024.09.02.610893v1. Executable version for Windows and Linux can be downloaded at https://figshare.com/articles/dataset/phytop_executable_versions_in_windows_and_linux/27276699
Any nodes of phylogenetic tree can be regarded as consisting of two sister groups and one outgroup, and these three lineages can form three topologies q1, q2, q3 (as shown in the figure below),The topology with the highest proportion is denoted as q1. ILS/IH index is calculated based on the number and proportion of these topologies.
![q123](example_data/legend_forintroduce/q123.png)
**Figure. The three topological structures of gene trees** Any combination of three lineages produces three topologies, When the ILS index is at its maximum of 100% and there is no IH, we expect q1 = q2 = q3 = 100%/3. When the IH index reaches 50% and there is no ILS, q1 = q2 = 50% is expected.
Expand Down Expand Up @@ -125,6 +125,13 @@ phytop astral.tree -clades setcladefile -collapse
![pie](example_data/legend_forintroduce/astral.tree.bar.collepse-1.png)
**Figure. Visual result of Phytop on example data with collapse for clades.** Juglans regia and Juglans sigillata were collepse for Juglans1

Get barcharts with different colors:
```
phytop sog.sc.cds.mm0.5.genetrees.astral -colors 'red','yellow','black'
```
![pie](example_data/legend_forintroduce/astral.tree-colors-red,yellow,black-1.png)
**Figure. Visual result of Phytop on example data with "-colors" parameter.** Set the columns to different colors

Get barcharts displays a selection of nodes:
```
phytop astral.tree -clades setcladefile -onshow Juglans1
Expand Down
2 changes: 1 addition & 1 deletion example_data/astral.tree
Original file line number Diff line number Diff line change
@@ -1 +1 @@
((((Juglans_regia,Juglans_sigillata)'[pp1=1.000000;pp2=0.000000;pp3=0.000000;f1=10683.488204;f2=134.779519;f3=111.226872]':3.384433,Juglans_nigra)'[pp1=1.000000;pp2=0.000000;pp3=0.000000;f1=4200.457879;f2=3923.074552;f3=1740.664944]':0.149287,Juglans_mandshurica),Carya_illinoinensis);
((((Juglans_regia,Juglans_sigillata)'[pp1=1.000000;pp2=0.000000;pp3=0.000000;f1=16289.583010;f2=128.942346;f3=107.734103;q1=0.985679;q2=0.007802;q3=0.006519]':3.836391,Juglans_nigra)'[pp1=1.000000;pp2=0.000000;pp3=0.000000;f1=6476.276988;f2=5586.541891;f3=2337.777784;q1=0.449723;q2=0.387938;q3=0.162339]':0.191811,Juglans_mandshurica),Carya_illinoinensis);
2 changes: 2 additions & 0 deletions example_data/astral.tree.info.tsv
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node n p_value q1 q2 q3 ILS_explain IH_explain ILS_index IH_index
N3 14400.596662999998 0.0 0.44972282326604873 0.38793822379274845 0.16233895294120287 0.32467790588240575 0.22559927085154557 0.4870168588236086 0.43977911307999945
N4 16526.259459 0.16802899201569788 0.985678764781155 0.007802270460529382 0.00651896475831555 0.014321235218844932 0 0.021481852828267478 0
Binary file modified example_data/astral.tree.pdf
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 36dfc68

Please sign in to comment.