griffithlab / GenVisR

Genome data visualizations
Creative Commons Zero v1.0 Universal
210 stars 62 forks source link

Output mutation frequency by gene from waterfall plot #367

Closed Sheneice closed 5 years ago

Sheneice commented 5 years ago

Hi, I would like the output the mutation frequency from waterfall plot to a table, by gene instead of by sample. I am well aware of the argument (out) from function waterfall but i would like to output the subplot (% Mutant) by gene name instead of by sample name.

I have been failed to export the desired data as by default, the data frame will be output by sample. I tried function writeData but since I am quite new to R, I failed to find out the reason for such error: writeData(waterfall(mutationData, mainRecurCutoff = 0.05, mainPalette = mycolors, clinData = Clin_Data1, maxGenes = 30, rmvSilent = TRUE, fileType = "Custom", out = "data", variant_class_order = mutation_priority), file("Test.csv"))

> Error in writeData(waterfall(mutationData, mainRecurCutoff = 0.05, mainPalette = mycolors, : could not find function "writeData"

Is there a way the output the desired data frame by gene name and is the function writeData ready to use? Thank you in advance for any kind of suggestions!