You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I find a bug within the plot.all.trees.clone.as.branch(). When the founding clone is not 1, then there is a bug when plot the tree.
My code is as following:
#The default founding clone is 7, rather than 1 y= infer.clonal.models(variants=mutdata,
cluster.col.name=cluster.col.name,
ccf.col.names=vaf.col.names,
cancer.initiation.model="monoclonal",
subclonal.test="bootstrap",
subclonal.test.model="non-parametric",
num.boots=2000,
founding.cluster=7)
plot.all.trees.clone.as.branch(y, branch.width=0.5,
node.size=1, node.label.size=0.5)
leading to this error.
Errorinx0[i] <-x1[which(x$branches==parent)]
Solution is here:
The sub-fucntion germinate from plot.all.trees.clone.as.branch removed the "Y" branch with the code below. Your original code assumes the first branches is "Y", in some case, the "Y" brance is not the the first one.
#The first branch is not "Y"y$matched$merged.trees[[1]]$branches
[1] "1""2""3""20""200""Y"#your original code of germinate()x<-list(trunk.height=x$length[1],
branches=x$branches[-1],
lengths=x$lengths[-1],
branch.colors=x$branch.colors[-1],
branch.border.colors=x$branch.border.colors[-1],
branch.border.linetypes=x$branch.border.linetypes[-1],
branch.border.widths=x$branch.border.widths[-1],
node.colors=x$node.colors[-1],
node.border.colors=x$node.border.colors[-1],
node.border.widths=x$node.border.widths[-1],
node.labels=x$node.labels[-1],
node.texts=x$node.texts[-1],
branch.texts=x$branch.texts[-1])
Thanks for your answer! It's really useful. I've encountered the same problem.
BTW, where can I find the source code for germinate() function ? I could not find it under the clonovol R package.
Hi qingjiang
Thank you so much for the bug fixing code.
I replaced the part in "trees.package.r" with your code but still the same error message came out. Which file did you modify?
Hi, I find a bug within the plot.all.trees.clone.as.branch(). When the founding clone is not 1, then there is a bug when plot the tree.
My code is as following:
leading to this error.
Solution is here:
The follwing code will solve this error.
Thanks for a very useful package!
Qingjian Chen
Sun Yat-Sen University Cancer Center (SYSUCC)
The text was updated successfully, but these errors were encountered: