stratify_sig | R Documentation |
stratify_sig()
is supposed to be used in combination after hack_sig()
in
order to classify your samples in one of two or more signature classes.
stratify_sig(sig_data, cutoff = "original", probs = seq(0, 1, 0.25))
sig_data |
A tibble result of a call to |
cutoff |
A character specifying which function to use to categorize samples by signature scores. Can be one of:
|
probs |
A numeric vector of probabilities with values in |
A tibble with the same dimension as sig_data
, having a column sample_id
with sample identifiers and one column for each input signature giving
sample classes.
hack_sig()
, stats::quantile()
scores <- hack_sig(test_expr, "immune")
stratify_sig(scores)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.