Open tanbiswas opened 5 months ago
I am getting the same error using also the data from the vignette/tutorial (https://bioconductor.org/packages/release/bioc/vignettes/GenVisR/inst/doc/Intro.R):
library(GenVisR) set.seed(383)
Plot only genes with mutations in 6% or more of samples waterfall(brcaMAF, mainRecurCutoff=.06)
waterfall(brcaMAF, mainRecurCutoff=.06) Checking if input is properly formatted... Calculating frequency of mutations... setting mutation hierarchy... Performing recurrence cutoff... Error in heatmap_grob[["grobs"]][[ind_legend]] : no such index at level 2 In addition: Warning messages: 1: The melt generic in data.table has been passed a table and will attempt to redirect to the relevant reshape2 method; please note that reshape2 is superseded and is no longer actively developed, and this redirection is now deprecated. To continue using melt methods from reshape2 while both libraries are attached, e.g. melt.list, you can prepend the namespace, i.e. reshape2::melt(mutation_counts). In the next version, this warning will become an error. 2: The dcast generic in data.table has been passed a data.frame and will attempt to redirect to the relevant reshape2 method; please note that reshape2 is superseded and is no longer actively developed, and this redirection is now deprecated. Please do this redirection yourself like reshape2::dcast(x). In the next version, this warning will become an error.
Hi,
I just ran into the same issue (no such index at level 2
error when running waterfall_align
). I fixed the issue by downgrading my ggplot2
package from version 3.5.0 to 3.4.4.
The origin of the issue seems to be a change in ggplot2 grob structure, that includes multiple guide-box
components instead of one.
On ggplot2 version 3.5.0:
On the working version (3.4.4):
This code is taken from the waterfall_align
function in the GenVisR
package.
Hi, I want to make good plots using GenVisR. I am getting the below errors while using waterfall function. If use Variant_Classification column which has a value like Missense_Mutation, Nonsense_Mutation, Silent etc. then I am getting error in waterfall_hierarchyTRV(data_frame, fileType, variant_class_order). Below is the error attached:
If I use Variant_Type column which has value like SNP, DNP, DEL etc. then I am getting another type of error!
If i directly use the maf file for plot. Thene I am getting the below error:
Please let me know where is the problem.
Regards, Tanay