Get Labels for Expected Differential Expression
getLabelExpected.Rd
This function assigns labels to genes based on whether their actual effect estimates indicate differential expression according to a given threshold and alternative hypothesis.
Arguments
- comparison_df
A data frame containing comparison results with actual effect estimates.
- coeff_threshold
The threshold value for determining differential expression.
- alt_hypothesis
The alternative hypothesis for comparison. Possible values are "greater", "less", and "greaterAbs".
Value
A modified data frame with an additional column indicating if the gene is differentially expressed.
Examples
# Generate a sample comparison data frame
comparison_data <- data.frame(
geneID = c("gene1", "gene2", "gene3"),
actual = c(0.5, -0.3, 0.8)
)
# Get labels for expected differential expression
labeled_data <- getLabelExpected(comparison_data, coeff_threshold = 0.2, alt_hypothesis = "greater")