View source: R/make_balloon_plot_data_from_mtc.R
make_balloon_plot_data_from_mtc | R Documentation |
Code to convert the processed output of TC over a pan-cancer dataset balloon plots for a single cancer type ("current_cancer_type") MTC - The subset of TC's output on a pan-cancer dataest which contains results for matched cancer type, i.e. for each cell line, it rreports the results when compared to tumors of the same cancer type So, for example, if we run TC on 10 cancer types on a pan-cancer type, we get 10 sets of results, with each set containing the results of comparing one of the 10 cancer types to all cell lines From this, MTC extracts only the results where the cell line and tumors are of the same cancer type, using the other cell lines to derive ranks We use ranks to compare across cancer types, since the weights and score distributions are very different across data types and cancer types
make_balloon_plot_data_from_mtc(mtc, cancer_type, melt_data = TRUE)
mtc |
(NOTE: users should not make dataset; the dataset with results from manuscript is included in the package). a data.frame with the columns:
|
cancer_type |
a cancer type abbreviation found in the MTC column Cell_Line_Cancer_Type |
melt_data |
boolean, whether to apply reshape2::melt() to data.frame |
a ggplot object
mtc_file <- system.file("extdata", "mtc_results_20200331", "mtc_results_20200331_no_factors.rds", package="tumorcomparer") mtc <- readRDS(mtc_file) dat <- make_balloon_plot_data_from_mtc(mtc, "BRCA")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.