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

Fix bug in simple dendrograms #165

Closed whelena closed 5 days ago

whelena commented 1 week ago

Description

When dendrogram mode is selected for trees with <6 nodes or a binary tree, calculate.clone.polygons assign angle calculation to be conducted using calculate.angle.fixed, which assumes radial mode. This PR fixes the conditions in calculate.clone.polygons so that dendrogram modes always uses calculate.angle.radial.

Closes #149

Fixed tree:

Screenshot 2024-11-18 at 12 28 24 PM

Checklist

[^1]: UCLA Health reaches $7.5m settlement over 2015 breach of 4.5m patient records [^2]: The average healthcare data breach costs $2.2 million, despite the majority of breaches releasing fewer than 500 records. [^3]: Genetic information is considered PHI. Forensic assays can identify patients with as few as 21 SNPs [^4]: RNA-Seq, DNA methylation, microbiome, or other molecular data can be used to predict genotypes (PHI) and reveal a patient's identity.

  To automatically exclude such files using a .gitignore file, see here for example.