LiuzLab / TraceQC

Other
6 stars 1 forks source link

Error in vignettes/tutorial.Rmd #6

Closed hyunhwan-jeong closed 4 years ago

hyunhwan-jeong commented 4 years ago

Regarding a1fd3f1e5bb816488383e6b902b201e3a1d0ae91, I failed to run circular_histogram(mutations,ref) which is at the end of the tutorial. Here is the error message:

Error: xleft, ybottom, xright, ytop should have same length.

The following message is the traceback.

4.
stop(x, call. = FALSE) 
3.
stop_wrap("xleft, ybottom, xright, ytop should have same length.") 
2.
circos.rect(df$start[i] - 0.4, df$y[i] - df$count[i] + 1, df$start[i] + 
    0.4, df$y[i], col = colors[df$mutate_to[i]], border = NA, 
    track.index = 1) at circular.R#97
1.
circular_histogram(mutations, ref) 
-- | --

What I figured out is there is an error during executing circos.rect (Line #97 in R/circular.R).

JasperYH commented 4 years ago

Now it should be fine

hyunhwan-jeong commented 4 years ago

@JasperYH

I have reverted your latest update of vignettes/tutorial.Rmd to my previous version. Please review b5d76e4 and I put some comments on why I have reverted.