find_dep {promor} | R Documentation |
Identify differentially expressed proteins between groups
Description
This function performs differential expression analysis on protein intensity data with limma.
Usage
find_dep(
df,
save_output = FALSE,
save_tophits = FALSE,
file_path = NULL,
adj_method = "BH",
cutoff = 0.05,
lfc = 1,
n_top = 20
)
Arguments
df |
A |
save_output |
Logical. If |
save_tophits |
Logical. If |
file_path |
A string containing the directory path to save the file. |
adj_method |
Method used for adjusting the p-values for multiple
testing. Default is |
cutoff |
Cutoff value for p-values and adjusted p-values. Default is 0.05. |
lfc |
Minimum absolute log2-fold change to use as threshold for differential expression. |
n_top |
The number of top differentially expressed proteins to save in
the "TopHits.txt" file. Default is |
Details
-
It is important that the data is first log-transformed, ideally, imputed, and normalized before performing differential expression analysis.
-
save_output
saves the complete results table from the differential expression analysis. -
save_tophits
first subsets the results to those with absolute log fold change of more than 1, performs multiple correction with the method specified inadj_method
and outputs the topn_top
results based on lowest p-value and adjusted p-value. If the number of hits with absolute log fold change of more than 1 is less than
n_top
,find_dep
prints only those with log-fold change > 1 to "TopHits.txt".If the
file_path
is not specified, text files will be saved in a temporary directory.
Value
A fit_df
object, which is similar to a limma
fit
object.
Author(s)
Chathurani Ranathunge
References
Ritchie, Matthew E., et al. "limma powers differential expression analyses for RNA-sequencing and microarray studies." Nucleic acids research 43.7 (2015): e47-e47.
See Also
Examples
## Perform differential expression analysis using default settings
fit_df1 <- find_dep(ecoli_norm_df)
## Change p-value and adjusted p-value cutoff
fit_df2 <- find_dep(ecoli_norm_df, cutoff = 0.1)