GenVisR: Error in waterfall_hierarchyTRV(data_frame, fileType, variant_class_order) or in heatmap_grob[["grobs"]][[ind_legend]] : no such index at level 2 #398
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:
mutationData <- read.delim("batch3_with_VAF.txt")
mutationData <- mutationData[,c("Tumor_Sample_Barcode", "Hugo_Symbol", "Variant_Classification", "HGVSp_Short")]
colnames(mutationData) <- c("sample", "gene", "variant_class", "amino.acid.change")
mutation_priority <- as.character(unique(mutationData$variant_class))
waterfall(mutationData, fileType = "Custom", variant_class_order=mutation_priority)
Checking if input is properly formatted...
Detected "Custom" file_type flag, looking for correct column names...
Calculating frequency of mutations...
setting mutation hierarchy...
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.
3: In waterfall_select_palette(file_type = file_type, custom_palette = plot_palette) :
Defining a palette in mainPalette is recommended when file_type is set to "Custom", defaulting to a predefined palette with 20 levels
If I use Variant_Type column which has value like SNP, DNP, DEL etc. then I am getting another type of error!
mutationData <- mutationData[,c("Tumor_Sample_Barcode", "Hugo_Symbol", "Variant_Type", "HGVSp_Short")]
colnames(mutationData) <- c("sample", "gene", "variant_class", "amino.acid.change")
mutation_priority <- as.character(unique(mutationData$variant_class))
waterfall(mutationData, fileType = "Custom", variant_class_order=mutation_priority)
Checking if input is properly formatted...
Detected "Custom" file_type flag, looking for correct column names...
Calculating frequency of mutations...
setting mutation hierarchy...
Error in heatmap_grob[["grobs"]][[ind_legend]] : no such index at level 2
In addition: Warning messages:
1: In waterfall_Custom2anno(x, label_col) :
Did not detect silent mutations in input, is this expected?
2: 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.
3: 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.
4: In waterfall_select_palette(file_type = file_type, custom_palette = plot_palette) :
Defining a palette in mainPalette is recommended when file_type is set to "Custom", defaulting to a predefined palette with 20 levels
If i directly use the maf file for plot. Thene I am getting the below error:
mutationData <- read.delim("batch3_with_VAF.txt")
waterfall(mutationData, fileType="MAF")
Checking if input is properly formatted...
Calculating frequency of mutations...
setting mutation hierarchy...
Error in waterfall_hierarchyTRV(data_frame, fileType, variant_class_order) :
Detected an invalid mutation type, valid values for MAF are: Nonsense_Mutation, Frame_Shift_Ins, Frame_Shift_Del, Translation_Start_Site, Splice_Site, Nonstop_Mutation, In_Frame_Ins, In_Frame_Del, Missense_Mutation, 5'Flank, 3'Flank, 5'UTR, 3'UTR, RNA, Intron, IGR, Silent, Targeted_Region, NA
In addition: Warning message:
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.
Waterfall(mutationData, fileType="MAF")
Error in Waterfall(mutationData, fileType = "MAF") :
unused argument (fileType = "MAF")
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