This function is used to compute the slope of the gene passed as input
Arguments
- screenR_Object
The ScreenR object obtained using the
create_screenr_object
- genes
The genes for which the slope as to be computed. Those genes are the result of the three statistical methods selection
- group_var
The variable to use as independent variable (x) for the linear model
Examples
object <- get0("object", envir = asNamespace("ScreenR"))
compute_slope(object,
genes = c("Gene_42", "Gene_24"),
group_var = c("T1", "T2", "TRT")
)
#> # A tibble: 2 × 2
#> # Rowwise: Gene
#> Gene Slope
#> <chr> <dbl>
#> 1 Gene_24 0.131
#> 2 Gene_42 -1.98