This function is used to compute the slope of the gene passed as input
compute_slope(screenR_Object, genes, group_var)The ScreenR object obtained using the
create_screenr_object
The genes for which the slope as to be computed. Those genes are the result of the three statistical methods selection
The variable to use as independent variable (x) for the linear model
A tibble containing in each row the gene and the corresponding Slope
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