hack_class {hacksig} | R Documentation |
Hack signature classes
Description
hack_class()
is supposed to be used in combination after hack_sig()
in
order to classify your samples in one of two or more signature classes.
Usage
hack_class(sig_data, cutoff = "original")
Arguments
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:
|
Value
A tibble with the same dimension as sig_data
, a column sample_id
indicating sample identifiers and one column for each input signature giving
signature classes.
See Also
Examples
library(dplyr)
hack_sig(test_expr, "immune") %>% hack_class()