View source: R/fn_spongeffects_utility.R
plot_density_scores | R Documentation |
plots the density of the model scores for subtypes (see Boniolo and Hoffmann 2022 et al. Fig. 2)
plot_density_scores(trained_model, spongEffects, meta_data, label, sampleIDs)
trained_model |
returned from train_and_test_model |
spongEffects |
output of enrichment_modules() |
meta_data |
metadata of samples (retrieved from prepare_tcga_for_spongEffects() or from prepare_metabric_for_spongEffects()) |
label |
Column of metadata to use as label in classification model |
sampleIDs |
Column of metadata containing sample/patient IDs to be matched with column names of spongEffects scores |
meta_data_type |
TCGA or METABRIC |
plots density scores for subtypes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.