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

Gene input #13

Closed dan-knight closed 2 years ago

dan-knight commented 2 years ago

These changes rework the gene dataframe input, combining the cnas and snvs dataframes into one genes dataframe.

gene node cn
ABC 1 gain
DEF 1 loss
GHI 1 NA
JKL 2 gain
MNO 2 gain

For now, the format changed as little as possible from the original dataframes. The cn column may need to be changed in the future to allow more flexibility. For now, values of gain and loss are retained from the cnas dataframe, and SNVs are indicated with a value of NA.

These changes also include refactors to some node preparation helper functions that needed to also be applied to the gene input. The related issue #12 was also fixed.