get_FDR_empirical | R Documentation |
get_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)
get_FDR_empirical(de_output_tidy, cluster_id_oi, contrast_oi, plot = FALSE)
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? |
de_output_tidy dataframe (for the celltype and contrast of interest) with two columns added: p_emp and p_adj_emp.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.