make_balloon_plot_data_from_comparison_result: Make Balloon Plot Data from Run Comparison Function

View source: R/make_balloon_plot_data_from_comparison_result.R

make_balloon_plot_data_from_comparison_resultR Documentation

Make Balloon Plot Data from Run Comparison Function

Description

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.

Usage

make_balloon_plot_data_from_comparison_result(
  comparison_result,
  melt_data = TRUE
)

Arguments

comparison_result

a data structure generated by run_comparison() function

melt_data

boolean, whether to apply reshape2::melt() to data.frame

Value

a ggplot object

Note

TODO Add example; run analysis save comparison and use here


cannin/tumorcomparer documentation built on Feb. 7, 2023, 3:13 p.m.