Replies: 1 comment
-
Commenting to this discussion to keep track of progress since 2022. Comments that are not specifically addressed are no longer relevant due to changes made to the input formatting or internal working of CEV. Showing cellular prevalence.The plotting function works for both CP and CCF (root node does not have to be one) and the x axis label is user defined. Plot below shows that CP > 1 works and even when there are violations, CEV is still able to plot the fish tree. y-axis
Wrapper functionOpening issue #158 to address the following comments
We will add a wrapper function (plotSRC) to optionally convert input files from |
Beta Was this translation helpful? Give feedback.
-
Set up
Thoughts from reading the user guide
Parent Data
c('parent', 'node')
. Also this would make it more consistent with the gene label data frames later on.Branch Lengths
length1
andlength2
(and promptly forgetting what they stand for), why not take 2 arguments that specify which column should be taken aslength1
and which column aslength2
? That way you will also automatically havey-axis
titles?Showing Cellular Prevalence
CP = 1
, does the function still work?Branch Angles
CNAs and SNVs
CNA = 0
andCNA = NA
Plot Width with Horizontal Padding
Branch Scaling
1
and2
,left
andright
might be better for specifying the two branches and the y-axis.X-Axes
Axis Title
parent.only
as the example figure to demonstrate this section, that's a tree where the branch lines don't mean anything right? So theSNVs
left y-axis doesn't make any sence?Axis Tick Placement
Thoughts from actually using the code
pdf()
anddev.off()
But the plot seems to output nodes
1:5
always. This is actually important since for mult-region SRC, not every cluster is in every sample but you need the node names to be consistent so you can tell which are the same clusters across samples.5. For
horizontal.padding
, seems like anything below-1
doesn't do extra?6. I generated some random
length2
that is completely on a different scale as length 1, unfortunately the automatic system completely fell apart for this (SRCGrob(tree, yaxis1.label = 'SNVs', horizontal.padding = -2)
), but I wouldn't say this is a completely outrageous example. Since SNV count in the ~10k range is not unheard of, and the number of driver SNVs for example would still be in the integer range
7. If a node has `CP = 0`, this error is outputted which is not the most informative > Error in unit(x, default.units) : 'x' and 'units' must have length > 0 8. If a node has `CP > 1`, the same error is outputted lol > Error in unit(x, default.units) : 'x' and 'units' must have length > 0 9. There might be something wrong with my cluster R environment set up, but the `italicize` of SNV labels didn't work for meThoughts to conclude
?SRCGrob
, but an naive user might not know where to lookSRCGrob
for the main function of this package? Most people won't know what agrob
is right? Maybe include a wrapper function calledplotSRC
or something and add the support for writing to file by includinggrid.plot
?Well I hope that does it, @dan-knight let me know if there's any specific feedback you are looking for!
Beta Was this translation helpful? Give feedback.
All reactions