combine_predict_grid: Combine prediction grid list into a result object. Exposure...

Description Usage Arguments Value Examples

View source: R/discovery_prediction.R

Description

Combine prediction grid list into a result object. Exposure values are zero for samples in an annotation where that signature was not predicted

Usage

1
combine_predict_grid(grid_list, bagel, signature_res)

Arguments

grid_list

A list of result objects from the prediction grid to combine into a single result

bagel

Input samples to predit signature weights

signature_res

Signatures to automatically subset from for prediction

Value

A result object combining all samples and signatures from a prediction grid. Samples have zero exposure value for signatures not found in that annotation type.

Examples

1
2
3
4
5
bay <- readRDS(system.file("testdata", "bagel_annot.rds", package = "BAGEL"))
grid <- auto_predict_grid(bay, "SBS96", BAGEL::cosmic_v2_sigs, "lda",
"Tumor_Subtypes", combine_res = FALSE)
combined <- combine_predict_grid(grid, bay, BAGEL::cosmic_v2_sigs)
plot_exposures_by_annotation(combined, "Tumor_Subtypes")

campbio/BAGEL documentation built on Oct. 6, 2020, 3:59 a.m.