Closed canna1998 closed 2 months ago
Hi,
Thank you for the issue. Could you please post the original command and the error?
Hi,
Thank you for the issue. Could you please post the original command and the error?
Of course.
coBarplot(m1 = a1_maf_cnv, m2 = a2_maf_cnv, m1Name = "A1", m2Name = "A2", genes = genes)
# Error in FUN(newX[, i], ...) : all arguments must have the same length
then I use debug() function and find problem in get_col_df function.
Well, I figured out what the problem is.
In the 4.0.5 base package, the apply function does not have simplify parameter, but in versions 4.1.0 and above, this code is fine.
Describe the issue
Thanks for your work and selfless sharing, I'd like to point out a bug.
The get_col_df function referenced in coBarplot seemingly has a bug in the sixth line.
https://github.com/PoisonAlien/maftools/commit/f06d8e80fbfa2854402c795d3684ae7fa6a6e2d0
It seems that this commit should not be accepted and the old code should be restored. I was able to run coBarplot and get_col_df function with the original code.
But I can't understand why adding simplify results in errors no matter what the assignment is. I hope you can give me your advice.
I'm not comfortable giving the original Maf file, so I provide the middle result createOncoMatrix( m = m, g = g, chatty = FALSE, add_missing = TRUE)[['oncoMatrix']]
Command
get_col_df_sample_data.csv
Session info