simonhmartin / twisst

Topology weighting by iterative sampling of sub-trees
GNU General Public License v3.0
72 stars 19 forks source link

How to interpret the results(output.weights.csv) #32

Open Galaxy-228 opened 2 years ago

Galaxy-228 commented 2 years ago

Hi Simon: After i run : python twisst.py -t B16_sonic_953pep_iqtree_root.nwk -w output.weights.csv --outputTopos topologies.trees --method complete -g D 1,2,3 -g C 4,5 -g B 6,7,8 -g A 9,10,11. i got the result file :output.weights.csv 图片 But i do not understand thoes numbers below each "topo". Thanks!

simonhmartin commented 2 years ago

Hi, Those numbers are the absolute topology weights. You can convert them to relative weights by dividing by the sum for each row. Alternatively, I have provided R functions for importing and plotting the results. See the script called example_plot.R

Galaxy-228 commented 2 years ago

Hi Simon: Thanks so much for your kindly reply! If i just have weights file (without the window data), what is the best way to show(plot) my data?

Best wishes~

simonhmartin commented 2 years ago

It should be possible to simply import the weights without specifying the window data file. The position of each window will then just be assigned as 1, 2, 3 etc.