View source: R/discovery_prediction.R
combine_predict_grid | R Documentation |
Combine signatures and exposures of different models. Exposure values are zero for samples in an annotation where that signature was not predicted
combine_predict_grid(
musica,
modality,
signature_res,
model_ids = NULL,
result_name = "result",
model_rename = NULL,
make_copy = FALSE,
table_name = NULL
)
musica |
A |
modality |
Modality used for prediction. |
signature_res |
Signatures to automatically subset from for prediction |
model_ids |
Vector of ids for the models to combine. If null, all models
in the modality and result_list entry will be combined. Default |
result_name |
Name of the result list entry containing the signatures
to plot. Default |
model_rename |
New model identifier. If null, will be combination of
the ids for the models being combined. Deafult |
make_copy |
If |
table_name |
Use modality instead |
Returns nothing or a new musica
object,
depending on the make_copy
parameter.
data(musica_annot)
data(cosmic_v2_sigs)
grid <- auto_predict_grid(musica_annot, "SBS96", cosmic_v2_sigs, "lda",
"Tumor_Subtypes",
combine_res = FALSE, make_copy = TRUE
)
combined <- combine_predict_grid(grid, "SBS96", cosmic_v2_sigs,
make_copy = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.