View source: R/make_balloon_plot_data_from_comparison_result.R
make_balloon_plot_data_from_comparison_result | R Documentation |
Code to convert the output of TC for a single cancer type to balloon plots. We don't use ranks here, since some cell lines will get low ranks even if none have particularly low scores (similarly some will get high ranks even if all scores are relatively low). Instead, we convert the distance matrices for all tumor-cell line comparisons to 0-1 using min-max scaling, and then compute the mean similarity to tumor for each cell line. The overall score is just a simple mean of the data type specific scores right now - could use different weights.
make_balloon_plot_data_from_comparison_result( comparison_result, melt_data = TRUE )
comparison_result |
a data structure generated by run_comparison() function |
melt_data |
boolean, whether to apply reshape2::melt() to data.frame |
a ggplot object
TODO Add example; run analysis save comparison and use here
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.