powered by
This function calculates the log2 fold change (FC) and p-values for differential expression analysis between two groups of data.
FC_P(compare1, compare2, p.adj = FALSE, method = "fdr")
A data frame containing the log2 fold change and -log10 transformed p-values for each row (e.g., genes, features) in the input data.
A matrix or data frame representing the first group of data.
A matrix or data frame representing the second group of data.
Logical. Should p-values be adjusted for multiple testing?
The method to use for p-value adjustment. Options: 'fdr', 'bonferroni', 'holm', etc.
compare1 <- matrix(rnorm(100), ncol = 10) compare2 <- matrix(rnorm(100), ncol = 10) result <- FC_P(compare1, compare2, p.adj = TRUE)
Run the code above in your browser using DataLab