uclahs-cds / package-CancerEvolutionVisualization

Publication Quality Phylogenetic Tree Plots
https://cran.r-project.org/web/packages/CancerEvolutionVisualization/
GNU General Public License v2.0
2 stars 0 forks source link

Inconsistent polygon behaviour when including CP column #138

Open whelena opened 2 months ago

whelena commented 2 months ago

I'm plotting single-sample SRC results using the fish-plot + tree feature. The data frame input looks like:

parent label length.1 CP
5 1 8 0.865
4 14 37 0.560
5 4 11 0.990
1 7 48 0.860
NA MRCA 122 0.930

Output plot :

Screenshot 2024-08-28 at 3 48 55 PM

I think this output is because CP of node 4 is greater than MRCA. But, this is also inconsistent with different CPs

CP 4 = 0.93 ($CP4 = CP{MRCA}$)

Screenshot 2024-08-28 at 3 52 01 PM

CP 4 = 0.8

Screenshot 2024-08-28 at 3 49 19 PM

CP 4 = 0.3 ($CP_4 < CP_14$)

Here the colour ordering is changed too

Screenshot 2024-08-28 at 3 55 40 PM