Description Usage Arguments Details Value Examples
View source: R/quantifyViaDecoupleR.R
The function decoupleFeatures calculates contamination scores
using the run_wmean function from the decoupleR. The 
function will return score values (per sample) that can be interpreted as the 
standard deviations away from an empirical null distribution.
| 1 2 3 4 5 | decoupleFeatures(
  values,
  args_fct,
  contamination = c("apoptosis", "necroptosis")
)
 | 
| values | matrix, the rownames contain the feature names (SYMBOL ids) and colnames the samples | 
| args_fct | list, containing the entries  | 
| contamination | 
 | 
The function is insprired by the work of Aurelien Dugourd and his plasmaContamination package (https://github.com/saezlab/plasmaContamination/).
The function will be called in scoreSamples.
tibble
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(SummarizedExperiment)
f <- system.file("protein_datasets/tanzer2020.RDS", 
    package = "apoptosisQuantification")
tanzer2020 <- readRDS(f)
prot <- assay(tanzer2020) |>
    as.data.frame()
## define a list with paramters
args_fct <- list()
args_fct[["signatures"]] <- readMarkers(type = "apoptosis", fc = 2, n = 1)
args_fct[["n_perm"]] <- 100
## run the function
decoupleFeatures(values = prot, args_fct = args_fct, 
    contamination = "apoptosis")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.