filterDeaDf | R Documentation |
Processes the results of getDeaResultsDf()
. See details.
filterDeaDf(
dea_df,
max_adj_pval = 0.05,
min_lfc = 0,
n_highest_lfc = 25,
n_lowest_pval = 25,
across_subset = NULL,
relevel = FALSE,
return = "data.frame"
)
dea_df |
A data.frame containing information about differentially expressed genes. Must contain the variables:
Hint: Use the resulting data.frame of |
max_adj_pval |
Numeric value. Sets the threshold for adjusted p-values. All genes with adjusted p-values above that threshold are ignored. |
min_lfc |
Numeric value. Sets the threshold for average log fold change. All genes with an average log fold change below that threshold are ignored. |
n_highest_lfc |
Numeric value. Affects the total number of genes that are kept. See details. |
n_lowest_pval |
Numeric value. Affects the total number of genes that are kept. See details. |
return |
Character value. Denotes the output type. One of 'data.frame', 'vector' or 'list |
The de-data.frame is processed such that the following steps are performed for every experimental group.
Discards genes with avg_logFC-values that are either infinite or negative
Discards genes with adjusted p-values above the threshold set with max_adj_pval
Discard genes with average log fold change below the treshold set with min_lfc
Slices the data.frame in order that for every experimental group:
the n genes with the highest avg_logFC-values are kept where n = n_highest_lfc
the n genes with the lowest p_val_adj-values are kept where n = n_lowest_pval
Arranges the genes according to the highest avg_logFC-values
Depends on input of argument return
:
return
= 'data.frame': The filtered data.frame of dea_df
with all its variables.
return
= 'vector': A named vector of all genes that remain. Named by the experimental
group in which they were differently expressed.
return
= 'list: A list named according to the experimental groups. Every slot of that list is
a character vector containing the differently expressed genes of the respective experimental group.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.