Add empirical p-values and adjusted p-values to a subset of the DE output table.
Source:R/muscat_de.R
get_FDR_empirical.Rdget_FDR_empirical Add empirical p-values and adjusted p-values to a subset of the DE output table. This is the function that works under the hood of `add_empirical_pval_fdr`. Credits to Jeroen Gillis (cf satuRn package)
Arguments
- de_output_tidy
Data frame of DE results, containing at least the following columns: cluster_id, contrast, p_val, logFC.
- cluster_id_oi
Indicate which celltype DE results should be filtered for.
- contrast_oi
Indicate which contrast DE results should be filtered for.
- plot
TRUE or FALSE (default): should we plot the z-score distribution?